From daefc068ec9ac90008d26fc62d902f3f7d416948 Mon Sep 17 00:00:00 2001 From: baskayj Date: Tue, 21 Dec 2021 19:33:21 +0100 Subject: [PATCH] Update 'Quick Guide to publishing websites on hal.elte.hu with Python3 backend' --- ...shing-websites-on-hal.elte.hu-with-Python3-backend.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Quick-Guide-to-publishing-websites-on-hal.elte.hu-with-Python3-backend.md b/Quick-Guide-to-publishing-websites-on-hal.elte.hu-with-Python3-backend.md index 5f16de5..ecb2101 100644 --- a/Quick-Guide-to-publishing-websites-on-hal.elte.hu-with-Python3-backend.md +++ b/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` \ No newline at end of file + 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