Compare commits

...

3 Commits

Author SHA1 Message Date
03354b4e2b
remove stripping tags from nnotes 2024-06-26 13:32:03 +05:30
303e3a1c0c
run.sh for automatic deployments 2024-06-26 12:33:09 +05:30
3c6232c151
Typo 2024-06-26 12:33:08 +05:30
3 changed files with 12 additions and 19 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="7" {{ ($server_data->server_type === 8) ? 'selected' : '' }}> <option value="8" {{ ($server_data->server_type === 8) ? 'selected' : '' }}>
COLO COLO
</option> </option>
</select></div> </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> <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)) @if(isset($server_data->note))
<p class="font-bold text-muted mt-3 mb-1 pb-0">Note:</p> <p class="font-bold text-muted mt-3 mb-1 pb-0">Note:</p>
<p class="pt-0">{!! strip_tags($server_data->note->note, '<li><ul><b><br>') !!}</p> <p class="pt-0">{!! $server_data->note->note !!}</p>
@endif @endif
</div> </div>
</x-card> </x-card>

25
run.sh
View File

@ -1,22 +1,15 @@
#!/bin/sh #!/bin/sh
# Run setup only if .env file doesn't exist. # Load environment variables from .env.production
if [ ! -e .env.production ] set -o allexport
then source .env.production
cat > .env.production << EOF set +o allexport
APP_NAME=MyIdlers
APP_DEBUG=false
APP_KEY=
DB_CONNECTION=mysql # Check if the database file exists and is not empty
DB_HOST=${DB_HOST} if [ ! -s $DB_DATABASE ]
DB_DATABASE=${DB_DATABASE} then
DB_USERNAME=${DB_USERNAME} touch $DB_DATABASE
DB_PASSWORD=${DB_PASSWORD} php artisan migrate:fresh --seed --force
APP_URL=${APP_URL}
EOF
php artisan key:generate --no-interaction --force
fi fi
# php artisan migrate:fresh --seed
php artisan serve --host=0.0.0.0 --port=8000 --env=production php artisan serve --host=0.0.0.0 --port=8000 --env=production