Created
November 16, 2017 08:27
-
-
Save sminnee/5f79dfaddd2db414c96257016cc28c8e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/.platform.yml b/.platform.yml | |
| index 6dd5cb2..fa84e0e 100644 | |
| --- a/.platform.yml | |
| +++ b/.platform.yml | |
| @@ -8,3 +8,6 @@ crons: | |
| queuedjobs_task: | |
| time: '* * * * *' | |
| command: 'test -f /var/www/mysite/www/host.txt && /usr/local/bin/sera 1 php /var/www/mysite/www/framework/cli-script.php dev/tasks/ProcessJobQueueTask 2>&1 | logger -t SilverStripe_cron' | |
| +shared_dirs: | |
| + mysite: | |
| + ".addon-checkouts": {} | |
| diff --git a/mysite/code/services/AddonBuilder.php b/mysite/code/services/AddonBuilder.php | |
| index 7b06bdd..787c4bd 100755 | |
| --- a/mysite/code/services/AddonBuilder.php | |
| +++ b/mysite/code/services/AddonBuilder.php | |
| @@ -9,7 +9,7 @@ use Composer\Package\PackageInterface; | |
| class AddonBuilder | |
| { | |
| - const ADDONS_DIR = 'add-ons'; | |
| + const ADDONS_DIR = '.addon-checkouts'; | |
| const SCREENSHOTS_DIR = 'screenshots'; | |
| @@ -47,7 +47,7 @@ class AddonBuilder | |
| } | |
| $path = implode('/', array( | |
| - TEMP_FOLDER, self::ADDONS_DIR, $addon->Name | |
| + BASE_PATH, self::ADDONS_DIR, $addon->Name | |
| )); | |
| // Convert PackagistAPI result into class compatible with Composer logic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment