Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live reload doesn't work inside docker #156

Open
gen4sp opened this issue Jan 14, 2019 · 2 comments
Open

Live reload doesn't work inside docker #156

gen4sp opened this issue Jan 14, 2019 · 2 comments

Comments

@gen4sp
Copy link

gen4sp commented Jan 14, 2019

Everything works well: after editing a file backpack reloads an app.
But if I run in under the docker, and source files in a mounted folder - it doesn't work.
How I can fix it?

api:
    build: ./api
    volumes:
        - ./api:/usr/app/
        - /usr/app/node_modules
    environment:
      - SERVER_PORT=4000
      - SERVER_HOST=0.0.0.0
      - NODE_ENV=development
      - DB_PORT=27017
      - DB_HOST=mongo
      - WAIT_HOSTS=mongo:27017
    ports:
      - "4000:4000"
    expose:
      - "4000"
    links:
      - mongo
    working_dir: /usr/app
    command: sh -c "/wait && yarn dev"
@gen4sp
Copy link
Author

gen4sp commented Jan 16, 2019

any thoughts, guys?
I have no idea where I should find the answer. Drop some, please

@ashbuilds
Copy link

ashbuilds commented Sep 24, 2019

any thoughts, guys?
I have no idea where I should find the answer. Drop some, please
Use watch option: Below 👇
#53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants