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

Commit fb47e28

Browse files
committed
Move before_exec and exec hooks to build section
Signed-off-by: Max Fierke <max@maxfierke.com>
1 parent 6f09f0d commit fb47e28

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

Boxfile

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11

2+
build:
3+
before_exec:
4+
- "rm -rf vendor/"
5+
- "cp app/config/parameters.yml.pagoda app/config/parameters.yml"
6+
7+
exec:
8+
- "composer install -n --prefer-source --optimize-autoloader --no-progress"
9+
210
web1:
311
network_dirs:
412
- app/cache
@@ -23,13 +31,6 @@ web1:
2331
php_session_autostart: "0"
2432
php_date_timezone: America/Chicago
2533

26-
before_exec:
27-
- "rm -rf vendor/"
28-
- "cp app/config/parameters.yml.pagoda app/config/parameters.yml"
29-
30-
exec:
31-
- "composer install -n --prefer-source --optimize-autoloader --no-progress"
32-
3334
before_deploy:
3435
- "php app/console --env=prod --no-debug doctrine:migrations:migrate -n -v"
3536
- "php app/console --env=prod --no-debug cache:clear --no-warmup -v"
@@ -65,13 +66,6 @@ worker1:
6566
php_session_autostart: "0"
6667
php_date_timezone: America/Chicago
6768

68-
before_exec:
69-
- "rm -rf vendor/"
70-
- "cp app/config/parameters.yml.pagoda app/config/parameters.yml"
71-
72-
exec:
73-
- "composer install -n --prefer-source --optimize-autoloader --no-progress"
74-
7569
global:
7670
env:
7771
- USE_INTL_ICU_DATA_VERSION: true

0 commit comments

Comments
 (0)