问题
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