Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added documentation for editing the site using Docker
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Editing the site using Docker | ||
|
||
It is also possible to work on the site using Docker. The process is as | ||
follows: | ||
|
||
* Build the Docker image | ||
docker build . -t perlwebadvice | ||
|
||
* Run the Docker container | ||
docker run -p7007:7007 -v$PWD:/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 | ||
docker exec YOUR_CONTAINER_NAME 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 |