Skip to content

Commit c5bc65c

Browse files
authored
Update develop-with-containers.md
There are missing clarifications on how Docker refresh works, after changing the files it WON'T auto refresh unless the user has set up Compose Watch (very unlikely as 99.99% of users reading this are just beginners/learning Docker), or rebuilding the project. Also the js file path wasn't complete on the first example.
1 parent 4e1eb29 commit c5bc65c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

content/get-started/introduction/develop-with-containers.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,14 @@ With this environment, you as the developer don’t need to install or configure
7575

7676
With this environment up and running, you’re ready to make a few changes to the application and see how Docker helps provide a fast feedback loop.
7777

78+
### Note
79+
Docker won't auto-detect code changes, it is not a live-reloading environment. So, after doing the changes in any of the files, you might:
80+
1. Run `docker-compose up --build` in a terminal/console inside your docker repo
81+
2. Use [Compose Watch](https://docs.docker.com/compose/how-tos/file-watch/)
82+
7883
### Change the greeting
7984

80-
The greeting at the top of the page is populated by an API call at `/api/greeting`. Currently, it always returns "Hello world!". You’ll now modify it to return one of three randomized messages (that you'll get to choose).
85+
The greeting at the top of the page is populated by an API call at `backend/src/api/greeting`. Currently, it always returns "Hello world!". You’ll now modify it to return one of three randomized messages (that you'll get to choose).
8186

8287
1. Open the `backend/src/routes/getGreeting.js` file in a text editor. This file provides the handler for the API endpoint.
8388

0 commit comments

Comments
 (0)