Compare commits

..

No commits in common. "303e3a1c0ca597486bbd5a9e3287b8102d2572a0" and "0217ff59d5f3a3e97e69c630574cef47ad68017e" have entirely different histories.

2 changed files with 18 additions and 11 deletions

View File

@ -39,7 +39,7 @@
<option value="7" {{ ($server_data->server_type === 7) ? 'selected' : '' }}> <option value="7" {{ ($server_data->server_type === 7) ? 'selected' : '' }}>
NAT NAT
</option> </option>
<option value="8" {{ ($server_data->server_type === 8) ? 'selected' : '' }}> <option value="7" {{ ($server_data->server_type === 8) ? 'selected' : '' }}>
COLO COLO
</option> </option>
</select></div> </select></div>

27
run.sh
View File

@ -1,15 +1,22 @@
#!/bin/sh #!/bin/sh
# Load environment variables from .env.production # Run setup only if .env file doesn't exist.
set -o allexport if [ ! -e .env.production ]
source .env.production
set +o allexport
# Check if the database file exists and is not empty
if [ ! -s $DB_DATABASE ]
then then
touch $DB_DATABASE cat > .env.production << EOF
php artisan migrate:fresh --seed --force 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
fi fi
php artisan serve --host=0.0.0.0 --port=8000 --env=production # php artisan migrate:fresh --seed
php artisan serve --host=0.0.0.0 --port=8000 --env=production