From 225a9ff4f738aa91c6aa546605ef57408a7012f2 Mon Sep 17 00:00:00 2001 From: baskayj Date: Tue, 21 Dec 2021 20:23:00 +0100 Subject: [PATCH] Update 'Quick Guide to publishing websites on hal.elte.hu with Python3 backend' --- ...ites-on-hal.elte.hu-with-Python3-backend.md | 18 +++++++++++++++++- 1 file changed, 17 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 4258b0c..95a65c5 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 @@ -101,4 +101,20 @@ By going to **localhost/your_app** in your browser you should be able to see now # Testing your website with Docker Since the site on hal.elte.hu will run inside a Docker container, before publishing you should test your work locally. To install Docker visit [this](https://docs.docker.com/get-docker/) link. -Once Docker is up and running, you should make a new project folder **DO NOT USE /var/www/html/!** \ No newline at end of file +Once Docker is up and running, you should make a new project folder **DO NOT USE /var/www/html/!**, and copy `your_app.conf` and the `your_app folder` from `/var/www/html/` inside. Once you're done adding some other scirpts detailed a little further, the folder struture should look like this: +> |----/your_app_docker/ +> |-----------------your_app.conf +> |-----------------Dockerfile --> **We’ll make this later** +> |-----------------locale.gen --> **We’ll make this later** +> |-----------------start_apache.sh --> **It's a surprise tool that'll help us later** +> |-----------------requirements.txt --> **Move from your_app/your_app/ to here** +> |-----------------your_app/ +> |---------------------your_app.wsgi +> |---------------------your_app/ +> |-------------------------static/ +> |-------------------------templates/ +> |-----------------------------main.html +> |----------------------------- (…) +> |-------------------------venv/ +> |-------------------------main.py +> |------------------------- (…) \ No newline at end of file