Skip to content

Commit

Permalink
Better Docker explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Feb 23, 2024
1 parent e6fbcee commit 265d217
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Docker.md
Expand Up @@ -9,18 +9,17 @@ follows:

* Run the Docker container

docker run -p7007:7007 -v$PWD:/perlwebadvice perlwebadvice
docker run -p7007:7007 -v$PWD:/perlwebadvice --name perlwebadvice perlwebadvice

* You can then see a local version of the site at http://localhost:7007/

* In a different command terminal run `docker ps` to see the name of your container
* When you have changed something, you can rebuild the site by running (in a different command line window)

* When you have changed something, you can rebuild the site by running

docker exec YOUR_CONTAINER_NAME aphra build
docker exec perlwebadvice aphra build

* Your new version of the site will appear when you refresh http://localhost:7007/

* To close down the Docker container, run

docker stop YOUR_CONTAINER_NAME
docker stop perlwebadvice

0 comments on commit 265d217

Please sign in to comment.