1
0
Fork 0
This commit is contained in:
Ilya Mukhortov 2024-03-23 14:16:12 +10:00
parent 6320aaf0d0
commit 2716b30a5d
1 changed files with 17 additions and 5 deletions

View File

@ -8,11 +8,23 @@ unzip /root/medicine-config/backups/medicine.sql.zip -d /root/medicine-config/vo
docker exec -i medicine-stack-postgres psql -U postgres -d medicine -f /files/medicine.sql
cd /root/medicine-config/medicine
if [ ! -f .env ]
then
cp env.sample .env
fi
read -p "Enter organization name: " ORGANIZATION_NAME
SECRET_KEY=$(openssl rand -base64 32)
cat <<EOT >> /root/medicine-config/medicine/.env
SECRET_KEY=$SECRET_KEY
SENTRY_SITE=$ORGANIZATION_NAME
NGINX_PORT=80
NGINX_HTTPS_PORT=443
UWSGI_PROCESSES=4
UWSGI_THREADS=2
EOT
docker-compose run --rm app python manage.py migrate --noinput
docker-compose up -d