Skip to content

Commit 5e1eb9e

Browse files
authored
Update start-container
1 parent 445294b commit 5e1eb9e

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

deployment/start-container

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,15 @@ set -e
44
container_mode=${CONTAINER_MODE:-"http"}
55
octane_server=${OCTANE_SERVER}
66
running_migrations_and_seeders=${RUNNING_MIGRATIONS_AND_SEEDERS:-"false"}
7-
artisan_cache=${ARTISAN_CACHE:-"true"}
87

98
echo "Container mode: $container_mode"
109

1110
initialStuff() {
12-
13-
if [ "${artisan_cache}" = "true" ]; then
14-
php artisan storage:link; \
15-
php artisan optimize:clear; \
16-
php artisan event:cache; \
17-
php artisan config:cache; \
18-
php artisan route:cache;
19-
fi
11+
php artisan storage:link; \
12+
php artisan optimize:clear; \
13+
php artisan event:cache; \
14+
php artisan config:cache; \
15+
php artisan route:cache;
2016

2117
if [ "${running_migrations_and_seeders}" = "true" ]; then
2218
echo "Running migrations and seeding database ..."

0 commit comments

Comments
 (0)