Commit ba574685 authored by Jorge S. Mendes de Jesus's avatar Jorge S. Mendes de Jesus
Browse files

update docs, python version, command server.py

parent 30eb4158
...@@ -6,6 +6,24 @@ Generic instructions and documentation concerning the Leuven virtual tour ...@@ -6,6 +6,24 @@ Generic instructions and documentation concerning the Leuven virtual tour
- [http://leuven.isric.org/](http://leuven.isric.org/) - [http://leuven.isric.org/](http://leuven.isric.org/)
- [https://ees.kuleuven.be/africa-in-profile/virtuele-tentoonstelling/index.html](https://ees.kuleuven.be/africa-in-profile/virtuele-tentoonstelling/index.html) - [https://ees.kuleuven.be/africa-in-profile/virtuele-tentoonstelling/index.html](https://ees.kuleuven.be/africa-in-profile/virtuele-tentoonstelling/index.html)
Running local server
--------------------
Local server (`server.py`) was rewritten to python3 (`3.8.4`), using the python3 `http.server` and `socketserver`, both packages are part of basic python3 distribution.
To run locally:
```
python server.py
```
The script binds to port `80`, it may require permissions to bind to a low port number. If so, change port number to `8080` or anything above `1024`, or sudo.
Local docker build
------------------
Script `run.sh` build and runs a local docker image.
Deployment Deployment
---------- ----------
......
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
docker stop leuven docker stop leuven
docker rm leuven docker rm leuven
docker build -t leuven-python3 . docker build -t leuven-python3 .
docker run --name leuven -d -p 8092:80 leuven-python3 docker run --name leuven -d -p 80:80 leuven-python3
\ No newline at end of file \ No newline at end of file
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