my-idlers/run.sh

23 lines
456 B
Bash
Raw Normal View History

2022-03-13 21:09:50 +01:00
#!/bin/sh
# Run setup only if .env file doesn't exist.
if [ ! -e .env.production ]
then
cat > .env.production << EOF
2022-03-13 21:09:50 +01:00
APP_NAME=MyIdlers
2022-03-13 21:19:24 +01:00
APP_DEBUG=false
2022-03-13 21:09:50 +01:00
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
fi
2022-03-14 07:51:41 +01:00
# php artisan migrate:fresh --seed
2022-03-13 21:09:50 +01:00
php artisan serve --host=0.0.0.0 --port=8000 --env=production