cookiecutter-django/docs
Bruno Alla b91c70d755
Add a node image to run Gulp when selecting it with Docker (#1687)
## Description

Following up on @webyneter attempt in #1205, which is now getting outdated, I've tried to make Gulp task runner work with Docker. There is no documentation yet, but this seems to work locally with the custom bootstrap compilation...

- [x] Add a node image for local developement
- [x] Proxy the django image rather than localhost in Browser sync, pass header to keep hostname
- [x] Don't call the runserver command from Gulp, let docker-compose handle
- [x] Update package.json & gulpfile.js templates to reduce the number of unwanted empty lines
- [x] Use [multi-stage build](https://docs.docker.com/develop/develop-images/multistage-build/) in production to make sure the static assets are produced
- [x] Update documentation
- [x] Verify that the previous issue with static assets missing from production isn't there 

## Rationale

Currently, the static build isn't working nicely with Docker, extra manual setup is required.

Fixes #1762
2019-03-25 12:10:55 +00:00
..
_static Add a _static folder to silence Sphinx' warning 2018-09-15 21:23:29 +01:00
__init__.py Beginning of reorganization of documentation per #335 2015-09-18 09:22:55 -07:00
conf.py First pass at running black across the project (#1602) 2018-04-08 17:03:29 -05:00
deployment-on-heroku.rst Remove running collectstatic from Heroku docs, it's done during deployments 2019-03-13 14:31:17 +00:00
deployment-on-pythonanywhere.rst Group environment variables by the corresponding directories (#1295) 2018-03-08 15:56:15 +03:00
deployment-with-docker.rst Add a node image to run Gulp when selecting it with Docker (#1687) 2019-03-25 12:10:55 +00:00
developing-locally-docker.rst Replace Caddy with Traefik (#1714) 2019-03-19 09:32:45 +00:00
developing-locally.rst Change eager celery setting in local Docker (#1945) 2019-03-02 13:51:30 +00:00
docker-postgres-backups.rst Fix PostgreSQL backup restore (#1628) 2018-05-05 12:27:27 +03:00
faq.rst Group environment variables by the corresponding directories (#1295) 2018-03-08 15:56:15 +03:00
index.rst EDITED the developing locally doc. 2018-11-20 00:06:54 +03:00
linters.rst Update linters page for better syntax highlighting 2018-09-15 21:26:13 +01:00
live-reloading-and-sass-compilation.rst Update documentation for bare metal local development 2018-09-15 21:23:06 +01:00
make.bat Change repo_name to project_slug for clarity. 2016-04-20 10:00:35 -07:00
Makefile Change repo_name to project_slug for clarity. 2016-04-20 10:00:35 -07:00
project-generation-options.rst Add note about using keep_local_envs_in_vcs (#1735) 2018-08-13 15:57:28 +03:00
settings.rst Migrate to unified Sentry SDK (#1820) 2019-03-20 10:04:44 +00:00
testing.rst EDITED the developing locally doc. 2018-11-20 00:06:54 +03:00
troubleshooting.rst Added help for startapp 2018-12-18 17:07:35 +05:30