Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SantoshSrinivas79/9f21f0c4b90ee44a6b5dfbe0288076dc to your computer and use it in GitHub Desktop.
Save SantoshSrinivas79/9f21f0c4b90ee44a6b5dfbe0288076dc to your computer and use it in GitHub Desktop.
Rapid Web Application Development using Django

#Rapid Web Application Development using Django

###Deployment

###Deployment - Example

sudo chown -R www-data:www-data /var/webapps/materiable_django/ sudo chmod -R g+w /var/webapps/materiable_django sudo chmod u+x bin/gunicorn_start.sh

Add configuration for Supervisor in /etc/supervisor/conf.d

Add NGINX configuration

sudo supervisorctl reread sudo supervisorctl update sudo supervisorctl status materiable sudo supervisorctl stop materiable sudo supervisorctl restart materiable

Always test using for example .. gunicorn jr.wsgi --bind 0.0.0.0:4578

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment