Skip to content

Commit cc1acb3

Browse files
committed
Add note about absolute files in static
1 parent 3113a3e commit cc1acb3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ docker run -d --name mycontainer -p 80:80 myimage
159159

160160
* You should be able to also go to, for example: <http://192.168.99.100/hello> to see a "Hello World" page served by Flask.
161161

162+
**Note**: As your `index.html` file will be served from `/` and from `/static/index.html`, the links to other files in the `static` directory from your `index.html` file should be absolute, as in `/static/css/styles.css` instead of relative as in `./css/styles.css`.
163+
162164

163165
## Technical details
164166

0 commit comments

Comments
 (0)