Update 'Quick Guide to publishing websites on hal.elte.hu with Python3 backend'

master
baskayj 4 years ago
parent
commit
daefc068ec
  1. 9
      Quick-Guide-to-publishing-websites-on-hal.elte.hu-with-Python3-backend.md

9
Quick-Guide-to-publishing-websites-on-hal.elte.hu-with-Python3-backend.md

@ -92,4 +92,11 @@ Make sure to replace `your_app`, appropriately, and set the location of your pyt
2. `python3 -m venv venv`
3. `source venv/bin/activate`
4. `pip3 install -r requirements.txt`
5. `deactivate`
5. `deactivate`
10. Enable the website by `sudo a2ensite your_app`
11. Restart the Apache2 server `sudo service apache2 restart` (To start or stop Apache2 you can use `sudo service apache2 start/stop`)
By going to **localhost/your_app** in your browser you should be able to see now your website, and if it has any interacitvity that runs some Python in the background it should work too. This will be up until you turn of you computer, or stop Apache2.
# Testing your website with Docker

Loading…
Cancel
Save