use DatabaseSeeder

This commit is contained in:
2026-02-11 20:13:24 +01:00
parent 7ee4db637e
commit 2c028bcfc1
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -53,7 +53,7 @@ cp /tmp/app.env .env
TYPESENSE_API_KEY=$(cat /typesense-data/api-key) TYPESENSE_API_KEY=$(cat /typesense-data/api-key)
sed -i "s/^TYPESENSE_API_KEY=.*/TYPESENSE_API_KEY=$TYPESENSE_API_KEY/" .env sed -i "s/^TYPESENSE_API_KEY=.*/TYPESENSE_API_KEY=$TYPESENSE_API_KEY/" .env
echo "DEV=$DEV" >> .env
chown www-data:www-data .env chown www-data:www-data .env
chmod 664 .env chmod 664 .env
@@ -65,8 +65,7 @@ chmod 664 .env
gosu www-data php artisan key:generate --force gosu www-data php artisan key:generate --force
gosu www-data php artisan config:clear gosu www-data php artisan config:clear
gosu www-data php artisan cache:clear gosu www-data php artisan cache:clear
gosu www-data php artisan migrate --force gosu www-data php artisan migrate --force --seed
gosu www-data php artisan db:seed --class=DevSeeder
chmod -R 775 storage bootstrap/cache chmod -R 775 storage bootstrap/cache
+2 -2
View File
@@ -50,6 +50,7 @@ cp /tmp/app.env .env
TYPESENSE_API_KEY=$(cat /typesense-data/api-key) TYPESENSE_API_KEY=$(cat /typesense-data/api-key)
sed -i "s/^TYPESENSE_API_KEY=.*/TYPESENSE_API_KEY=$TYPESENSE_API_KEY/" .env sed -i "s/^TYPESENSE_API_KEY=.*/TYPESENSE_API_KEY=$TYPESENSE_API_KEY/" .env
echo "DEV=$DEV" >> .env
chown www-data:www-data .env chown www-data:www-data .env
chmod 640 .env chmod 640 .env
@@ -61,8 +62,7 @@ chmod 640 .env
php artisan key:generate --force php artisan key:generate --force
php artisan config:clear php artisan config:clear
php artisan cache:clear php artisan cache:clear
php artisan migrate --force php artisan migrate --force --seed
php artisan db:seed --class=ProdSeeder
chown root:root .env chown root:root .env
chmod 440 .env chmod 440 .env