Skip to content

Commit

Permalink
Update start-container
Browse files Browse the repository at this point in the history
  • Loading branch information
smortexa authored Jan 2, 2025
1 parent 445294b commit 5e1eb9e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions deployment/start-container
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,15 @@ set -e
container_mode=${CONTAINER_MODE:-"http"}
octane_server=${OCTANE_SERVER}
running_migrations_and_seeders=${RUNNING_MIGRATIONS_AND_SEEDERS:-"false"}
artisan_cache=${ARTISAN_CACHE:-"true"}

echo "Container mode: $container_mode"

initialStuff() {

if [ "${artisan_cache}" = "true" ]; then
php artisan storage:link; \
php artisan optimize:clear; \
php artisan event:cache; \
php artisan config:cache; \
php artisan route:cache;
fi
php artisan storage:link; \
php artisan optimize:clear; \
php artisan event:cache; \
php artisan config:cache; \
php artisan route:cache;

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

0 comments on commit 5e1eb9e

Please sign in to comment.