mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 15:33:44 +01:00
23 lines
462 B
Bash
Executable File
23 lines
462 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Run setup only if .env file doesn't exist.
|
|
if [ ! -e .env.production ]
|
|
then
|
|
cat > .env.production << EOF
|
|
APP_NAME=MyIdlers
|
|
APP_DEBUG=false
|
|
APP_KEY=
|
|
|
|
DB_CONNECTION=mysql
|
|
DB_HOST=${DB_HOST}
|
|
DB_DATABASE=${DB_DATABASE}
|
|
DB_USERNAME=${DB_USERNAME}
|
|
DB_PASSWORD=${DB_PASSWORD}
|
|
APP_URL=${APP_URL}
|
|
EOF
|
|
php artisan key:generate --no-interaction --force
|
|
php artisan migrate:fresh --seed --force
|
|
fi
|
|
|
|
php artisan serve --host=0.0.0.0 --port=8000 --env=production
|