adrema/bin/copydb

11 lines
507 B
Plaintext
Raw Normal View History

2024-07-16 00:05:27 +02:00
#!/bin/bash
2021-07-04 16:56:07 +02:00
echo "drop database scoutrobot;" | sudo mysql
echo "create database scoutrobot;" | sudo mysql
2023-10-18 14:10:34 +02:00
ssh -l stammsilva zoomyboy.de "cd /usr/share/webapps/nami_silva && docker compose exec db mysqldump -udb -p$SCOUTROBOT_DB_PASSWORD db" > db.tmp
sudo mysql scoutrobot < db.tmp
2021-07-04 16:56:07 +02:00
rm db.tmp
2024-12-09 23:58:35 +01:00
echo 'app(\App\Form\FormSettings::class)->fill(["registerUrl" => "http://stammsilva.test/anmeldung/{slug}/register", "clearCacheUrl" => "http://stammsilva.test/adrema/clear-cache"])->save();' | php artisan tinker