Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Move before_exec and exec hooks to build section
Browse files Browse the repository at this point in the history
Signed-off-by: Max Fierke <max@maxfierke.com>
  • Loading branch information
maxfierke committed Feb 15, 2015
1 parent 6f09f0d commit fb47e28
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions Boxfile
@@ -1,4 +1,12 @@

build:
before_exec:
- "rm -rf vendor/"
- "cp app/config/parameters.yml.pagoda app/config/parameters.yml"

exec:
- "composer install -n --prefer-source --optimize-autoloader --no-progress"

web1:
network_dirs:
- app/cache
Expand All @@ -23,13 +31,6 @@ web1:
php_session_autostart: "0"
php_date_timezone: America/Chicago

before_exec:
- "rm -rf vendor/"
- "cp app/config/parameters.yml.pagoda app/config/parameters.yml"

exec:
- "composer install -n --prefer-source --optimize-autoloader --no-progress"

before_deploy:
- "php app/console --env=prod --no-debug doctrine:migrations:migrate -n -v"
- "php app/console --env=prod --no-debug cache:clear --no-warmup -v"
Expand Down Expand Up @@ -65,13 +66,6 @@ worker1:
php_session_autostart: "0"
php_date_timezone: America/Chicago

before_exec:
- "rm -rf vendor/"
- "cp app/config/parameters.yml.pagoda app/config/parameters.yml"

exec:
- "composer install -n --prefer-source --optimize-autoloader --no-progress"

global:
env:
- USE_INTL_ICU_DATA_VERSION: true
Expand Down

0 comments on commit fb47e28

Please sign in to comment.