From 3d92b46a672f163867c1aa2080d48fcb273aafe9 Mon Sep 17 00:00:00 2001 From: Ian Hopkinson Date: Thu, 6 Feb 2020 15:28:04 +0000 Subject: [PATCH] Fix commandline to run flask server in README.md As originally written the `flask run ...` command fails with: `bash: flask: command not found` Preceding the original `flask run` command with `python -m ...` works, successfully launching the web server --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 017b7aa..3f98291 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Some things to try: - Try adding some code and check out the language features. 2. **Terminal:** - Press ctrl+shift+\` to open a terminal window. - - Type `flask run --host 0.0.0.0 --port 9000 --no-debugger --no-reload` to run the app. + - Type `python -m flask run --host 0.0.0.0 --port 9000 --no-debugger --no-reload` to run the app. > **Note:** It is important to add `--host 0.0.0.0` when using `appPort` in `devcontainer.json` since this uses Docker to "publish" the port rather than forwarding it. It therefore will not work if the application only listens to localhost. - Open a local browser and go to `http://localhost:9000` to see the running app. 3. **Build, Run, and Debug:**