Just a stab in the dark, but are both projects using the same port?

Using gunicorn, you can set the IP and port the server runs on, then in
Nginx you need to tell each app to use the correct port.

Example from memory:

/home/aaron/app1 $ python manage.py gunicorn 127.0.0.1:8000

/home/aaron/app2 $ python manage.py gunicorn 127.0.0.1:8001

Then in the nginx config for app1 you need to point it to
127.0.0.1:8000and app2 needs to be pointed to
127.0.0.1:8001.

-A



On Tue, Aug 13, 2013 at 7:31 AM, Muhammed TÜFEKYAPAN
<muhammed...@gmail.com>wrote:

> Hello Everyone,
>
>
> I use digitalocean for server and i install nginx and unicorn for django.
> I have one service for my project. I also want to add new django project
> and i made it with making new services.
>
> When my one project running the other project stop.
>
> How can i run two projects same time?
>
> Thanks.
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to