fix init script
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
#!/bin/sh
|
||||
composer install
|
||||
|
||||
# Init the laravel directory
|
||||
if ! [ -d "app" ] ; then
|
||||
/opt/bitnami/scripts/laravel/entrypoint.sh /opt/bitnami/scripts/laravel/run.sh
|
||||
else
|
||||
composer install
|
||||
fi
|
||||
|
||||
|
||||
# Create .env if it does not exist
|
||||
if ! [ -e ".env" ] ; then
|
||||
@@ -8,4 +15,5 @@ if ! [ -e ".env" ] ; then
|
||||
fi
|
||||
|
||||
php artisan migrate --force
|
||||
php artisan serve --host=0.0.0.0 --port=8000
|
||||
|
||||
/opt/bitnami/scripts/laravel/entrypoint.sh /opt/bitnami/scripts/laravel/run.sh
|
||||
|
||||
Reference in New Issue
Block a user