我想和多库交朋友。 我在数字海洋飞沫上运行dokku。在
user@mypc:~$ cat Procfile
web: python3 main.py
user@mypc:~$ git push dokku master
Counting objects: 5, done.
Delta compression using up to 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 up ...
=====> Application deployed:
http://app.myapp.ru
To dokku@myapp.ru:app
d2cd6b3..7733adf master -> master
尽管下载是成功的,我仍然得到502错误
^{pr2}$如果您直接运行应用程序,它会成功地启动tanet,但是我仍然会得到502错误。在
root@myserver:~# dokku run app python3 main.py
[I 140324 08:59:19 main:75] Starting http server on localhost:5000
当应用程序运行时,所有环境变量都拼写正确。 有什么想法吗?在
我也遇到了同样的问题。绑定到0.0.0.0是问题的一部分。多库还预计,龙卷风将在5000号港口服役。因此,修复程序将服务器侦听调用改为:http_服务器。侦听(5000,地址=“0.0.0.0”)
比我想象的容易得多。我在0.0.0.0上绑定了
抱歉问了个愚蠢的问题。在
相关问题 更多 >
编程相关推荐