How to create new Building Configuration in OpenShift (for Django app)

徘徊边缘 提交于 2019-12-12 06:30:12

问题


I need to create a customized building configuration for my OpenShift(NextGen) Django application .Currently I am having django-psql-persistent configuration, which is comes with OpenShift(NextGen)-Django by default.


回答1:


You can use the basic 'python' builder image available from the catalog when adding to a project from the web console. You can also use oc new-app python~<repo-url> from the command line using the oc client.

For examples of a few Django applications set up to use a production WSGI server see:

  • https://gitlab.com/osevg/python-django-modwsgi
  • https://gitlab.com/osevg/python-django-gunicorn
  • https://gitlab.com/osevg/python-django-uwsgi

The repos provide some instructions of deploying the examples and how to set appropriate environment variables.



来源:https://stackoverflow.com/questions/41431684/how-to-create-new-building-configuration-in-openshift-for-django-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!