Update Readme with Dev and Prod

This commit is contained in:
francesco 2021-06-20 22:54:23 +02:00
parent b7779d1e0c
commit f04cde43ff

View File

@ -1 +1,18 @@
Hier Entsteht ein Documentation für ferschiedene Bereiche der Entwicklung und Netzwerk. Hier Entsteht ein Documentation für ferschiedene Bereiche der Entwicklung und Netzwerk.
# Usage
## Development
To Ensure that the page are desplayed correctly, runn the Docker container on localhost like this:
```bash
sudo docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material
```
If you want to preview the page, just run:
```bash
sudo docker run --rm -it -v ${PWD}:/docs squidfunk/mkdocs-material build
```
This will create a directory in your project called `site`. For publushing the files inside this build folder, will be coppied in the standard nginx web directory `/usr/share/nginx/html`.
## Publish the site
The page will be deployed automatically with a push on the master branch.