mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-09 14:34:53 +03:00
Update Gulpfile v4 to support Docker
This commit is contained in:
parent
b0f5fb9b76
commit
05cee1389b
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user