mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-17 02:14:53 +03:00
Fix a couple of issues with Webpack + Docker
This commit is contained in:
parent
0d1fcf6d68
commit
4e690bf5fc
|
@ -124,7 +124,9 @@ services:
|
|||
command: npm run dev
|
||||
ports:
|
||||
- "3000:3000"
|
||||
{%- if cookiecutter.frontend_pipeline == 'Gulp' %}
|
||||
# Expose browsersync UI: https://www.browsersync.io/docs/options/#option-ui
|
||||
- "3001:3001"
|
||||
{%- endif %}
|
||||
|
||||
{%- endif %}
|
||||
|
|
|
@ -7,7 +7,11 @@ module.exports = merge(commonConfig, {
|
|||
devServer: {
|
||||
port: 3000,
|
||||
proxy: {
|
||||
{%- if cookiecutter.use_docker == 'n' %}
|
||||
'/': 'http://0.0.0.0:8000',
|
||||
{%- else %}
|
||||
'/': 'http://django:8000',
|
||||
{%- endif %}
|
||||
},
|
||||
// We need hot=false (Disable HMR) to set liveReload=true
|
||||
hot: false,
|
||||
|
|
Loading…
Reference in New Issue
Block a user