Adds powershell command line to start server

parent 49e06ad6
......@@ -30,11 +30,19 @@ Inside `my-web-project/www` you place your web files.
# Running the server
Go to your web project directory (e.g., `my-web-project`) and run:
### On Linux (bash)
```
docker run -it -e APACHE_ROOT=www -e PHP_DISPLAY_ERRORS=On \
-e DOCKER_USER_ID=`id -u \`whoami\`` -p "80:80" -v ${PWD}:/app \
-v ${PWD}/mysql:/var/lib/mysql --name lampserver-1 --rm lampserver
```
### On Windows (powershell)
```
docker run -it -e APACHE_ROOT=www -e PHP_DISPLAY_ERRORS=On -p "80:80" -v ${PWD}:/app -v ${PWD}/mysql:/var/lib/mysql --name lampserver-1 --rm lampserver
```
`lampserver-1` is the name of the docker *container*, i.e., a running instance
of the `lampserver` image.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment