Hello there! I did it :) Culprit was some typo error in config file. Thank you.
Sri On Friday, March 25, 2016 at 1:37:35 PM UTC+5:30, [email protected] wrote: > > Hello there! > > Trying to deploy Mezzanine on digital ocean since last 2 days, googled > most of the tutorial available. But unfortunately, nothing worked. > Currently, I've few Mezzanine sites running on Python anywhere. Since last > few month Python anywhere performance is not upto mark thus migrating to > digital ocean. > > Tested with inbuilt Fabric configuration and official Mezzanine > documentation, but it gives an error. Now, I'm trying to configure manually > with uwsgi and nginx. Sometime, it gives "Internal server error", sometime > "Bad gateway" and sometime nothing :) > > My configuration files are like this: > --------------- > /etc/uwsgi/sites/codenjump.ini > --------------- > [uwsgi] > socket = /home/developer/codenjump/codenjump.sock > virtualenv = /home/developer/Env/codenjump > chdir = /home/developer/codenjump > wsgi-file = /home/developer/codenjump/codenjump/wsgi.py > pythonpath = .. > env = DJANGO_SETTINGS_MODULE=codenjump.settings > master = true > processes = 5 > workder = 3 > chmod-socket = 666 > enable-threads = true > > -------------------------- > /etc/init/uwsgi.conf > ------------------------ > description "uWSGI application server in Emperor mode" > > start on runlevel [2345] > stop on runlevel [!2345] > > setuid developer > setgid www-data > > exec /usr/local/bin/uwsgi --emperor /etc/uwsgi/sites > > ------------------- > /etc/nginx/sites-available/codenjump > ------------------- > server { > listen 80; > server_name ip_address; > > location = /favicon.ico { access_log off; log_not_found off; } > location /static/ { > root /home/developer/codenjump; > } > > location / { > include uwsgi_params; > uwsgi_pass unix:/home/user/developer/codenjump/codenjump.sock; > } > } > > ------------------------------ > > Few other points: > -- When i start uwsgi service, socket file is not getting generated. > Checked folder permission. > -- Tried with gunicorn also. No luck. I'm open to deploy with gunicorn or > uwsgi or other. > > Appreciate any help. Thank you. > > Sri > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
