In the terminal, use cd
to change into the project directory (where this README is).
cd unit-4-lab-2-flask
Run the script to start the Flask server. This command will install dependencies and start a server that will watch for changes. You only need to run this once, make changes, and reload your local webpage to see your changes.
./run-flask.sh
If you run into a permissions error, run the following command then try again.
chmod 777 run-flask.sh
In the terminal, use cd
to change into the project directory (where this README is).
cd unit-4-lab-2-flask
Build the Docker container image.
docker build -t flask-wiki .
Run the Docker container image. You will need to re-run the docker run
command after making your changes.
docker run -p 8080:8080 flask-wiki
Open the link or the web preview on the correct port and you should see the app!