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