Created
August 11, 2019 06:13
-
-
Save sujitmhj/55b01a924796d9ab7c27b0fc896d55c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export DJANGO_SETTINGS_MODULE=config.settings.production | |
export DJANGO_SECRET_KEY=6SI3cJUnlY4m4A9DnDSxcA0UmwmVOfl3HbcLrnmLOT7Ig3cKCGfpN3cqZkVDMUji | |
export DJANGO_ADMIN_URL=admin/ | |
export POSTGRES_HOST=localhost | |
export POSTGRES_PORT=5432 | |
export POSTGRES_DB=bhrdb | |
export POSTGRES_USER=lzmNPpunmEKUnHjYJkabARoKFcsHpRqE | |
export POSTGRES_PASSWORD=brchpassword | |
export POSTGRES_PASS=brchpassword | |
export POSTGRES_DBNAME=brchdb | |
export DATABASE_URL="postgres://brch:brchpassword@localhost:5432/brchdb" | |
export CELERY_BROKER_URL="redis://localhost:6379/0" | |
export REDIS_URL="redis://redis:6379/0" | |
export USE_DOCKER=no | |
export DJANGO_ALLOWED_HOSTS=brchpmne.info | |
export DJANGO_SECURE_SSL_REDIRECT=False | |
export MAILGUN_API_KEY= | |
export DJANGO_SERVER_EMAIL= | |
export MAILGUN_DOMAIN= | |
export DJANGO_AWS_ACCESS_KEY_ID= | |
export DJANGO_AWS_SECRET_ACCESS_KEY= | |
export DJANGO_AWS_STORAGE_BUCKET_NAME= | |
export DJANGO_ACCOUNT_ALLOW_REGISTRATION=True | |
export WEB_CONCURRENCY=4 | |
export SENTRY_DSN= | |
export REDIS_URL=redis://redis:6379/0 | |
export CELERY_FLOWER_USER=cIMVlgrZfMuKDJFEEFEiuDTWaWENMxYcjPeIQlbu | |
export CELERY_FLOWER_PASSWORD=e7Ykkske2Eval08y1fHsB7mtMknfmxdDhXRMha7oQ6BBdozKYJtdLoSEU7SRP0uQvvrvd | |
cd /root/brchp/brchp | |
/root/brchp/brchenv/bin/gunicorn --timeout 10000 --bind unix:/home/ubuntu/brch.sock -m 007 config.wsgi:application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name test.info; | |
root /var/www/; | |
index index.html; | |
location / { | |
include proxy_params; | |
proxy_pass http://unix:/home/ubuntu/brch.sock; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:brch_gunicorn] | |
user = root | |
directory=/root/brchp/brchp | |
command=sh /root/brchp/brchp/deploy/start_gunicorn.sh | |
autostart=true | |
autorestart=true | |
stopsignal=INT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment