Skip to content
Browse files

NEW: Added post-install and post-update dev/build call.

With this change, composer will automatically call dev/build after an update or install
command.  The main reason that this is 3.1-only is that previous releases would have
necessitated the use of 'sudo -u www-data', which is too environment-specific.

One thing that this may cause problems with is 'composer create-project' in an environment
without a _ss_environment file.  It will call dev/build, and dev/build will throw an
error.  That should be fixed in a subsequent commit.
  • Loading branch information...
1 parent 16c72aa commit 26147bb962ba8246e3bb0dc61624bcc45019d996 @sminnee sminnee committed May 30, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 composer.json
4 composer.json
@@ -10,5 +10,9 @@
"config": {
"process-timeout": 600
+ "scripts": {
+ "post-install-cmd": "php ./framework/cli-script.php dev/build",
+ "post-update-cmd": "php ./framework/cli-script.php dev/build"
+ },
"minimum-stability": "dev"

1 comment on commit 26147bb

SilverStripe Ltd. member

I believe Windows is having problems with the path having forward slashes sigh:

Please sign in to comment.
Something went wrong with that request. Please try again.