I'm setting up a django project following H. Percival's TDD. By the end of the chapter I setup an Upstart process to start the server with Gunicorn using Nginx as well.
My upstart file
/etc/init/gunicorn-superlists-staging.conf looks like this:
description "Gunicorn server for superlists-staging" start on net-device-up stop on shutdown respawn setuid diego chdir /home/diego/sites/superlists-staging/source exec ../virtualenv/bin/gunicorn \ --bind unix:/tmp/superlists-staging.socket \ superlists.wsgi:application
And running it with
sudo start I get the error:
start: Unknown job: gunicorn-superlists_staging
What confuses me is that I can run the last command fine from the server,
../virtualenv/bin/gunicorn \ --bind unix:/tmp/superlists_staging.socket \ superlists.wsgi:application
and this is where the error is.
The way to identify the error follows this post. That is, I comment all the instructions and uncomment one at a time until it breaks in the last one.
My server is in AWS. What else should I provide for fixing this?