These are chat archives for django/django

29th
Oct 2017
djangoReactGuy
@SanskarSans
Oct 29 2017 01:36 UTC
anyone online?
I am trying to deploy ma app in digitalocean but i got stuck in gunicorn service setup

[Unit]
Description=gunicorn daemon
After=network.target

[Service]
User=root
Group=www-data
WorkingDirectory=/home/root/eatplus-django
#ExecStart=/home/root/eatplus-django/myprojectenv/bin/gunicorn --access-logfile - --workers 3 --bind unix:/home/root/eatplus-django/myproject.s$

[Install]
WantedBy=multi-user.target
what is ExecStart and how do i configure it?
I am using virtualenvwrapper instead of virtualenv so my virtualenv package is in diiferent path
djangoReactGuy
@SanskarSans
Oct 29 2017 01:43 UTC
ExecStart=/home/root/Env/eatplus/bin/gunicorn I gave following path but did not understand the line --bind unix: what_path_should_i_give_here
I dont see .sock file anywhere
djangoReactGuy
@SanskarSans
Oct 29 2017 03:59 UTC

I fixed this issue i think but when i hit url 159.203.44.151 i am redirected to gitlab page
instead of django app because i have configured the nginx server as


server {
    listen 80;
    server_name 159.203.44.151 eatplus.com http://www.eatplus.com;

gitlab.rb

external_url "http:/lab.eatplus.com/"
White Rabbit
@Wahtdb_twitter
Oct 29 2017 20:01 UTC