20 lines
392 B
Bash
20 lines
392 B
Bash
#!/bin/sh
|
|
|
|
# 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
|
|
cp /init/.env .
|
|
php artisan key:generate
|
|
fi
|
|
|
|
php artisan migrate --force
|
|
|
|
/opt/bitnami/scripts/laravel/entrypoint.sh /opt/bitnami/scripts/laravel/run.sh
|