mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-10 19:57:09 +03:00
Merge pull request #336 from yunti/select-python-version
Add python version option for deployment
This commit is contained in:
commit
cf340019a1
|
@ -13,5 +13,6 @@
|
|||
"use_celery": "n",
|
||||
"use_maildump": "n",
|
||||
"use_sentry": "n",
|
||||
"windows": "n"
|
||||
"windows": "n",
|
||||
"use_python2": "n"
|
||||
}
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
{% if cookiecutter.use_python2 == 'n' -%}
|
||||
FROM python:3.4
|
||||
{% else %}
|
||||
FROM python:2.7
|
||||
{%- endif %}
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
# Requirements have to be pulled and installed here, otherwise caching won't work
|
||||
|
@ -20,4 +24,4 @@ RUN chmod +x /gunicorn.sh && chown django /gunicorn.sh
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
|
3
{{cookiecutter.repo_name}}/runtime.txt
Normal file
3
{{cookiecutter.repo_name}}/runtime.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
{% if cookiecutter.use_python2 == 'n' -%}
|
||||
python-3.4.3
|
||||
{%- endif %}
|
Loading…
Reference in New Issue
Block a user