Compare commits

..

No commits in common. "new-master" and "note-api" have entirely different histories.

3 changed files with 19 additions and 12 deletions

View File

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

View File

@ -210,7 +210,7 @@
<p id="yabs_code" class="d-none pt-3"><code>curl -sL yabs.sh | bash -s -- -s "{{route('api.store-yabs', [$server_data->id, \Illuminate\Support\Facades\Auth::user()->api_token])}}"</code></p>
@if(isset($server_data->note))
<p class="font-bold text-muted mt-3 mb-1 pb-0">Note:</p>
<p class="pt-0">{!! $server_data->note->note !!}</p>
<p class="pt-0">{!! strip_tags($server_data->note->note, '<li><ul><b><br>') !!}</p>
@endif
</div>
</x-card>

25
run.sh
View File

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