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

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

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

@ -25,7 +25,7 @@ Since Flask’s built-in server is not fit for live traffic, you need another WS
3. Enable mod_wsgi: `SUDO A2ENMOD WSGI` 3. Enable mod_wsgi: `SUDO A2ENMOD WSGI`
4. Create a config file for your website: 4. Create a config file for your website:
## Creating `your_app.conf` #### Creating `your_app.conf`
This file contains the paths to all the important Files needed for Apache2 to run your Python3 scripts. The minimal config file for a Flask-app, with static files (Images, CSS) present looks like: This file contains the paths to all the important Files needed for Apache2 to run your Python3 scripts. The minimal config file for a Flask-app, with static files (Images, CSS) present looks like:
``` ```
<VirtualHost *:80> <VirtualHost *:80>
@ -51,3 +51,7 @@ This file contains the paths to all the important Files needed for Apache2 to ru
CustomLog ${APACHE_LOG_DIR}/access.log combined CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost> </VirtualHost>
``` ```
Replace `your_app` with the appropriate name of your website and folders. If you use a different folder structure, make sure it’s reflected here.
5. ASD
6. BSD

Loading…
Cancel
Save