Im trying to deploy django app using nginx & gunicorn but its showing error
sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
sudo systemctl status gunicorn.service
gunicorn.service - gunicorn serv
high performance web server and a
reverse pr
On Sat, Apr 11, 2020 at 11:07 PM Rok Klancar wrote:
> Dude, try "sudo systemctl status nginx"
>
> Dne sobota, 11. april 2020 18.53.50 UTC+2 je oseba Jagtar Singh Lakhyan
> napisala:
>>
>> Im trying to deploy django
ile.
>
> It could be a symbolic link error. I don’t know. If you see some web page
> with an error message like Internal Error 500 or the default nginx page,
> let us know.
>
> On Sat, Apr 11, 2020 at 1:39 PM Jagtar Singh Lakhyan <
> jagtar.lakhe...@gmail.com> wrote:
&g
inx
>
> wait for about 2-5minutes then run
> sudo systemctl status gunicorn
>
> IT shoud display error in your code
>
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunnexaj...@gmail.com *
>
>
>
> On Sun, Apr 12, 2020 at 5:54 AM Jagtar Singh Lakhyan <
>
tes-available and your
> gunicorn.service file
>
> V V ned., 12. apr. 2020 ob 15:57 je oseba Jagtar Singh Lakhyan <
> jagtar.lakhe...@gmail.com> napisala:
>
>> Hi Ajayi,
>>
>> sudo systemctl reload daemon-reload
>>
>> Failed to reload daemon-r
020 ob 17:40 je oseba Rok Klancar
> napisala:
>
>> Everything seems to be in order
>>
>> Maybe it's the firewall's fault.
>> What do you get when you type
>> 'sudo ufw status' ?
>>
>> V V ned., 12. apr. 2020 ob 16:09 je oseba Jagtar
w enable
>
> Tell me how that worked out
>
> V V ned., 12. apr. 2020 ob 17:47 je oseba Jagtar Singh Lakhyan <
> jagtar.lakhe...@gmail.com> napisala:
>
>> sudo ufw status
>>
>> [sudo] password for wms:
>>
>> Status: inactive
>>
>>
>
et-up-django-with-postgres-nginx-
>
> *AJAYI Sunday *
> (+234) 806 771 5394
> *sunnexaj...@gmail.com *
>
>
>
> On Sun, Apr 12, 2020 at 2:57 PM Jagtar Singh Lakhyan <
> jagtar.lakhe...@gmail.com> wrote:
>
>> Hi Ajayi,
>>
>> sudo systemctl reloa
d you to
> access your server via ssh?
>
>
> V V pon., 13. apr. 2020 ob 13:37 je oseba Jagtar Singh Lakhyan <
> jagtar.lakhe...@gmail.com> napisala:
>
>> You mean to say
>>
>>
>> https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with
f gunicorn, will you still get the 502 error? If yes,
> the orginal error it means your nginx cannot connect to your gunicorn.
>
> Have you tested your app on dev server, i.e: `python manage.py runserver` ?
>
> On Sat, Apr 11, 2020 at 11:53 PM Jagtar Singh Lakhyan <
> jagtar
: self.load_wsgi()
Apr 13 19:49:36 wms gunicorn[2515]: File
"/home/wms/iitians/iitiansenv/lib/python3.6/site-packages/gunicorn/workers/base.py
project/project/ ls
*asgi.py* *__init__.py* *__pycache__* *settings.py* *urls.py*
*views.py* *wsgi.py*
On Mon, Apr 13, 2020 at 10:21 PM
@soham will keep in mind next time
You forgot one step after enabling ufw.
You have to execute sudo ufw allow ssh.
@Aldian will try n update the same
On Mon, Apr 13, 2020 at 10:30 PM Jagtar Singh Lakhyan <
jagtar.lakhe...@gmail.com> wrote:
> sudo journalctl -u gunicorn
>
> -- Lo
Use python3 & install if Not installed
On Tue, Jul 21, 2020 at 11:19 PM Kovy Jacob wrote:
> Jacob-Mac-mini:TachlisGeredt kovyjacob$ python manage.py runserver
> 0.0.0.0:8000
>
> File "manage.py", line 16
>
> ) from exc
>
> ^
>
> SyntaxError: invalid syntax
>
>
> why am I getting a
Use python3 & install if Not installed then run python3 manage.py runserver
On Wed, Jul 22, 2020 at 8:08 PM Kovy Jacob wrote:
> It gives me a syntax error
>
> Jacob-Mac-mini:TachlisGeredt kovyjacob$ python manage.py runserver
> 0.0.0.0:8000
> File "manage.py", line 16
> ) from exc:
> ^
> Syntax
14 matches
Mail list logo