2024-05-17 10:14:16 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-05-24 00:54:11 -04:00
|
|
|
rm -rf .env*
|
|
|
|
|
|
|
|
echo "APP_ENV=prod" > .env
|
|
|
|
echo "APP_DEBUG=0" >> .env
|
|
|
|
|
2024-05-17 10:14:16 -04:00
|
|
|
LENGTH=32
|
|
|
|
|
|
|
|
SECRET_KEY=$(openssl rand -base64 $LENGTH | tr -d '=' | tr -d '+' | tr -d '/' | tr -d ' ')
|
|
|
|
TRIMMED_KEY=$(cut -c1-32 <<< $SECRET_KEY)
|
2024-05-24 00:54:11 -04:00
|
|
|
echo "APP_SECRET=$TRIMMED_KEY" >> .env
|
|
|
|
echo "DATABASE_URL=\"sqlite:///%kernel.project_dir%/var/data.db\"" >> .env
|
|
|
|
echo "MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0" >> .env
|
|
|
|
|
|
|
|
symfony console doctrine:migrations:migrate --no-interaction
|
|
|
|
COMPOSER_ALLOW_SUPERUSER=1 composer update
|