From 05cee1389b61039da090e3d06c33e735460f4423 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Sat, 2 Mar 2019 12:05:10 -0300 Subject: [PATCH] Update Gulpfile v4 to support Docker --- {{cookiecutter.project_slug}}/gulpfile.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/{{cookiecutter.project_slug}}/gulpfile.js b/{{cookiecutter.project_slug}}/gulpfile.js index d92678ed2..d2341d4b4 100644 --- a/{{cookiecutter.project_slug}}/gulpfile.js +++ b/{{cookiecutter.project_slug}}/gulpfile.js @@ -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 )