Hi im pretty new in python, so im already have a simple app runing locally, and im trying to make it run on digitalocean droplet, with ubuntu 16.04 tls
evryting is ok for now i have installed my virtualenv, and nginx, so im trying to use gunicorn, but something might be wrong cause, i cant see the index of my app
hope you can helpmeout
wsgi.py file
im getting the following
my firewall
evryting is ok for now i have installed my virtualenv, and nginx, so im trying to use gunicorn, but something might be wrong cause, i cant see the index of my app
hope you can helpmeout
wsgi.py file
import os, sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__),'..'))) from flask_blog import app if __name__=="__main__": app.run()when i use gunicorn --bind 0.0.0.0:8000 wsgi:app
im getting the following
[2019-01-25 19:48:59 +0000] [7179] [INFO] Starting gunicorn 19.9.0 [2019-01-25 19:48:59 +0000] [7179] [INFO] Listening at: http://0.0.0.0:8000 (7179) [2019-01-25 19:48:59 +0000] [7179] [INFO] Using worker: sync [2019-01-25 19:48:59 +0000] [7182] [INFO] Booting worker with pid: 7182and when i try to acces to my app, it just dont change, so appears that unicorn cant reach my app :(
my firewall
sudo ufw status Status: active To Action From -- ------ ---- 80/tcp ALLOW Anywhere 115/tcp ALLOW Anywhere 21/tcp ALLOW Anywhere 21 ALLOW Anywhere 8000 ALLOW Anywhere 80 ALLOW Anywhere 443 ALLOW Anywhere 80/tcp (v6) ALLOW Anywhere (v6) 115/tcp (v6) ALLOW Anywhere (v6) 21/tcp (v6) ALLOW Anywhere (v6) 21 (v6) ALLOW Anywhere (v6) 8000 (v6) ALLOW Anywhere (v6) 80 (v6) ALLOW Anywhere (v6) 443 (v6) ALLOW Anywhere (v6)