Skip to content

Commit f46b6b4

Browse files
author
Philipp Kübler
committed
move code to the entrypoint
1 parent 8205ec0 commit f46b6b4

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

home/app/entrypoint.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ set -e
77
mkdir -p /opt/app/storage/logs/
88
touch /opt/app/storage/logs/laravel.log
99
touch /opt/app/storage/logs/worker.log
10-
1110
chown www-data:www-data -R /opt/app/storage
1211
chown www-data:www-data -R /opt/app/bootstrap/cache
1312

home/app/run-dev.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
echo "Running via DEV script..."
33
cd /opt/app
44

5-
# make sure Laravel can write its own files
6-
mkdir -p /opt/app/storage/logs/
7-
touch /opt/app/storage/logs/laravel.log
8-
touch /opt/app/storage/logs/worker.log
9-
chown www-data:www-data -R /opt/app/storage
10-
chown www-data:www-data -R /opt/app/bootstrap/cache
11-
125
# create storage symlink
136
php artisan storage:link
147

home/app/run-prod.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
echo "Running via PROD script..."
33
cd /opt/app
44

5-
# make sure Laravel can write its own files
6-
mkdir -p /opt/app/storage/logs/
7-
touch /opt/app/storage/logs/laravel.log
8-
touch /opt/app/storage/logs/worker.log
9-
chown www-data:www-data -R /opt/app/storage
10-
chown www-data:www-data -R /opt/app/bootstrap/cache
11-
125
# migrate and setup database
136
wait-for-it.sh mysql:3306
147
php artisan migrate --force

0 commit comments

Comments
 (0)