Merge pull request #336 from yunti/select-python-version

Add python version option for deployment
This commit is contained in:
Audrey Roy Greenfeld 2015-09-22 08:50:34 -07:00
commit cf340019a1
3 changed files with 10 additions and 2 deletions

View File

@ -13,5 +13,6 @@
"use_celery": "n",
"use_maildump": "n",
"use_sentry": "n",
"windows": "n"
"windows": "n",
"use_python2": "n"
}

View File

@ -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"]

View File

@ -0,0 +1,3 @@
{% if cookiecutter.use_python2 == 'n' -%}
python-3.4.3
{%- endif %}