簡體   English   中英

無法在OpenShift中啟動服務器

[英]Can't start server in openshift

我已經開始快速部署django了

當我嘗試在SSH終端中使用python manage.py runserver啟動django-server時,出現以下錯誤:

Performing system checks... 
System check identified no issues (0 silenced). 
October 04, 2015 - 20:56:45 
Django version 1.8.2, using settings 'mysite.settings' 
Starting development server at http://127.0.0.1:8000/ 
Quit the server with CTRL-BREAK. 
Error: You don't have permission to access that port.

如何成功啟動django服務器?

您似乎正在執行的某些操作可能會導致您遇到的問題。

  1. 您不應使用runserver命令在生產環境中啟動服務器,即僅出於開發目的而運行本地服務器。

  2. 您無法在openshift的8000端口上啟動服務器,而需要在8080端口上啟動服務器,請參閱: https : //developers.openshift.com/en/managing-port-binding-routing.html

  3. django quickstart的當前版本(9月9日#464680f )無法正常工作,您可以暫時使用此存儲庫: https : //github.com/jsvgoncalves/django-openshift

    編輯:在3中報告的錯誤已在以下位置修復: https : //bugzilla.redhat.com/show_bug.cgi?id=1308722

此外,由於每README.md是回購的,你應該設置$OPENSHIFT_PYTHON_WSGI_APPLICATION環境變量的路徑wsgi.py

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM