I've been trying to deploy my Pyramid app on a VPS for the past few days, but just can't seem to get it to work.
I've been trying to follow this tutorial<http://pyramid-cookbook.readthedocs.org/en/latest/deployment/nginx.html>in the Cookbook to use Nginx and Pserve. This is my project setup: /home/SkinResearch | |---- env/ |---- SkinProject | |---- production.ini |---- requirements.txt |---- setup.py & setup.cfg |---- skinresearch.psql & skinresearch.sql |---- SkinProject.egg-info |---- skinproject | |---- scripts/ |---- static/ |---- templates/ |----__init__.py |---- views.py |---- models.py My __init__.py returns config.make_wsgi_app(), so I think this is the correct entry point. This is my production.ini <http://hastebin.com/zujutuloma.hs>. When I included the [pipeline:main] section in the tutorial, I got an ambiguous section name error, so I took it out. My nginx.conf <http://hastebin.com/adixetegif.nginx> in /etc/nginx/nginx.conf is just the default one, except that I uncommented the line server_names_hash_bucket_size 64; (it was giving me an error if I didn't). This is my default <http://hastebin.com/efivudixog.nginx> file in /etc/nginx/sites-enabled/default. (I disabled the original default by changing the filename to default.disabled) I'm a little confused about the line in the tutorial that says "myapp.conf is actually included into the http {} section of the main nginx.conf file." I'm guessing this means its automatically included, since there's a line in nginx.conf that says "include /etc/nginx/sites-enabled/*;"? Or am I supposed to copy and paste it in the nginx.conf file? With these settings and configs, running pserve production.ini works, and it serves on 127.0.0.1:5000. When I start nginx, the command sudo netstat -plutn | grep nginx gives me the following, which I take to mean that it is running. tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2929/nginx tcp6 0 0 :::80 :::* LISTEN 2929/nginx Then I execute pserve --daemon --pid-file=pserve_5000.pid production.ini http_port=5000, and it says entering daemon mode. But my domain name is wisderm.com; as you can see, there's an internal server error. I'm completely lost at this point; what am I doing wrong? Sorry if some of these questions are silly, it's my first time deploying a webapp. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
