diff --git a/.dockerfile b/.dockerfile index 6ca634d..891344e 100644 --- a/.dockerfile +++ b/.dockerfile @@ -1,4 +1,4 @@ -FROM python:3.6.1 +FROM python:3.6 RUN mkdir -p /usr/src/app WORKDIR /usr/src/app @@ -6,7 +6,13 @@ WORKDIR /usr/src/app COPY requirements.txt /usr/src/app/ RUN pip install --no-cache-dir -r requirements.txt +RUN npm install -g bower grunt-cli +RUN npm install +RUN bower install +RUN grunt + ENV PYTHONUNBUFFERED 1 ENV PYTHONDONTWRITEBYTECODE 1 ENV LANG en_US.UTF-8 ENV PYTHONIOENCODING utf_8 +ENV DISABLE_COLLECTSTATIC 1 diff --git a/readme.md b/readme.md index b9c8009..4540ea0 100644 --- a/readme.md +++ b/readme.md @@ -57,3 +57,12 @@ Now access the admin panel with the user account you created earlier: http://loc ## Troubleshooting - Issues with migrating database tables in SQLite during development? Try `./manage.py migrate --fake` + +## Production notes + +We are using [Dokku](http://dokku.viewdocs.io/) for automated deployment. + +``` +sudo dokku apps:create phase-alpha +sudo dokku config:set phase-alpha BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-python +``` diff --git a/runtime.txt b/runtime.txt index c91e43b..3a799ff 100644 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -python-3.6.1 +python-3.6.0