On Mon, Oct 14, 2013 at 12:17 PM, Muhammed TÜFEKYAPAN
<muhammed...@gmail.com> wrote:
> I use digitalocean as a server. I upload my django project files on my
> server and start to setup. Made postgresql settings etc but I can't define
> my new project as a new service on nginx. How can I define my new projest as
> a service and make possible to start it as "service blabla start".
>
> When I type "service --statıs-all" I can't see my new project now.


i think you're mixing two things and missing a third.

1: AFAIK, nginx doesn't have "services", just serves requests via some
methods, either static files, internal plugins or backend servers.

2: on most linux distros, the 'service' command manages startup
scripts; with start/stop commands to run daemons.

3: nginx doesn't run python applications, you have to run them in an
app server.  for Django, (and most python frameworks), the best option
is a wsgi server.  One that runs really well with nginx is uWSGI.
another option is to run gunicorn as an HTTP backend server behind
nginx.


so, which is your deployment strategy?
(https://docs.djangoproject.com/en/1.6/howto/deployment/)


-- 
Javier

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFkDaoQhk7BtAz8aDQZv79cea76A3MJM-tpWVToPhr-3jAPKdw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to