Skip to content

Commit

Permalink
build: pass container environment to php-fpm (#152)
Browse files Browse the repository at this point in the history
* build: pass container environment to php-fpm

* build: remove unused cron service

* build: change init commands order
  • Loading branch information
andreiio authored Dec 13, 2022
1 parent 2fb7ef8 commit 3991875
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
5 changes: 0 additions & 5 deletions docker/s6-rc.d/cron/run

This file was deleted.

1 change: 0 additions & 1 deletion docker/s6-rc.d/cron/type

This file was deleted.

12 changes: 4 additions & 8 deletions docker/s6-rc.d/laravel/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,15 @@

cd /var/www

echo "Laravel init started"
php artisan down
php artisan migrate --force
php artisan wf:setup
php artisan wf:sequences
php artisan storage:link

php artisan config:cache
php artisan event:cache
php artisan route:cache
php artisan view:cache
php artisan icons:cache
php artisan storage:link
php artisan migrate --force
php artisan wf:setup
php artisan wf:sequences

echo "Laravel init done"
php artisan up
php artisan about
2 changes: 1 addition & 1 deletion docker/s6-rc.d/php/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh -e
#!/command/with-contenv sh

php-fpm
Empty file.

0 comments on commit 3991875

Please sign in to comment.