We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--poll
1 parent ffc53c3 commit 334e5a2Copy full SHA for 334e5a2
2 files changed
Dockerfile
@@ -30,4 +30,5 @@ EXPOSE 4000
30
# On startup, run this command to start application in dev mode
31
ENTRYPOINT [ "npm", "run", "serve" ]
32
# By default set host to 0.0.0.0 to listen/accept connections from all IP addresses.
33
-CMD ["--", "--host 0.0.0.0"]
+# Poll for changes every 5 seconds (if any detected, app will rebuild/restart)
34
+CMD ["--", "--host 0.0.0.0", "--poll 5000"]
docker/docker-compose.yml
@@ -38,3 +38,7 @@ services:
38
target: 4000
39
- published: 9876
40
target: 9876
41
+ volumes:
42
+ # Mount the local 'src' directory to the '/app' directory on the container.
43
+ # Allows the UI to "watch" this directory for changes and reload/rebuild when changes are detected.
44
+ - ../src:/app/src
0 commit comments