python - Dokku + tornado app = 502 Bad Gateway -
i'm trying make friends dokku. i'm run dokku on digitalocean droplet.
user@mypc:~$ cat procfile web: python3 main.py user@mypc:~$ git push dokku master counting objects: 5, done. delta compression using 4 threads. compressing objects: 100% (3/3), done. writing objects: 100% (3/3), 295 bytes | 0 bytes/s, done. total 3 (delta 2), reused 0 (delta 0) -----> building app ... -----> installing env in build environment ... python app detected -----> preparing python runtime (python-3.4.0) -----> installing setuptools (2.1) -----> installing pip (1.5.4) -----> installing dependencies using pip (1.5.4) < long install reqs log > cleaning up... -----> discovering process types procfile declares types -> web -----> releasing app ... -----> deploying app ... -----> cleaning ... =====> application deployed: http://app.myapp.ru dokku@myapp.ru:app d2cd6b3..7733adf master -> master
despite fact download successful, i'm still getting 502 error
root@myserver:~# dokku run app ps aux user pid %cpu %mem vsz rss tty stat start time command root 1 0.0 0.2 17888 1496 ? ss+ 08:41 0:00 /bin/bash /exec ps aux root 13 0.0 0.2 15536 1128 ? r+ 08:41 0:00 ps aux root@myserver:~# dokku logs app [i 140324 08:41:37 main:75] starting http server on localhost:5000
if run application directly, startanet, i'll still 502 error.
root@myserver:~# dokku run app python3 main.py [i 140324 08:59:19 main:75] starting http server on localhost:5000
all environment variables spelled correctly, , application running. ideas?
much easier thought. had bind on 0.0.0.0
sorry stupid question.
Comments
Post a Comment