Open qwabra opened 4 years ago
inside docker compile is ok, but ... watcher didn't work
# docker-compose.yml
version: '3'
services:
dev:
image: node:12-alpine
volumes:
#
- .:/workspace
#
# - nodemodules:/workspace/node_modules
- /workspace/node_modules
- /workspace/__sapper__
- /workspace/src/node_modules
#
# - /workspace/dist
# - /workspace/.cache
#
# - /etc/letsencrypt:/etc/letsencrypt
# - /var/lib/letsencrypt:/var/lib/letsencrypt
environment:
- NODE_ENV=development
- PORT=80
working_dir: /workspace/
ports:
- 80:80
- 10000:10000
tty: true
# volumes:
# nodemodules:
# external: true
vscode "open foler inside WSL"(WSL addon) - fail
copy folder to home dir(inside WSL), and open it use code .
- look like ok
http://127.0.0.1:3000/ - fail (look like vscode route) http://192.168.88.233:3000/ - fail (look like vscode route) http://localhost:3000/ - is ok
Hi @qwabra
I'm assuming you are trying to build the template on your windows machine. I'm a little confused at what part Docker plays in this?
I try different ways of working from under Windows in search of a working solution.
So, for Windows, single work solution for me - is WSL 1 (rollup is checked )
windows rollup fail
npm/yarn nodejs 12/14 windows 10
rollup
npx degit "sveltejs/sapper-template#rollup" my-app
webpack
npx degit "sveltejs/sapper-template#webpack" my-app
hmm, webpack, hotreload din't work !?
from browser console: