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

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

18
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 # 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. 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/!** 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
> |------------------------- (…)
Loading…
Cancel
Save