pass
This commit is contained in:
parent
6320aaf0d0
commit
2716b30a5d
|
|
@ -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
|
docker exec -i medicine-stack-postgres psql -U postgres -d medicine -f /files/medicine.sql
|
||||||
|
|
||||||
cd /root/medicine-config/medicine
|
read -p "Enter organization name: " ORGANIZATION_NAME
|
||||||
if [ ! -f .env ]
|
|
||||||
then
|
SECRET_KEY=$(openssl rand -base64 32)
|
||||||
cp env.sample .env
|
|
||||||
fi
|
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 run --rm app python manage.py migrate --noinput
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue