Update Gulpfile v4 to support Docker

This commit is contained in:
Bruno Alla 2019-03-02 12:05:10 -03:00
parent b0f5fb9b76
commit 05cee1389b

View File

@ -127,7 +127,12 @@ function initBrowserSync() {
`${paths.js}/*.js`,
`${paths.templates}/*.html`
], {
{%- if cookiecutter.use_docker == 'n' %}
proxy: "localhost:8000"
{% else %}
proxy: "django:8000",
open: false
{%- endif %}
}
)
}
@ -149,7 +154,9 @@ const generateAssets = parallel(
// Set up dev environment
const dev = parallel(
{%- if cookiecutter.use_docker == 'n' %}
runServer,
{%- endif %}
initBrowserSync,
watchPaths
)