You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BTW, I had to rename the webhook-bot.py to webhookbot.py because hyphen was causing problems.
flaskapp.wsgi looks like this:
#!/usr/bin/python
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0,"/var/www/FlaskBot/")
from webhookbot import app as application
application.secret_key = 'putsomethinghere'
wsgi.py looks like this:
#!/usr/bin/env python
import sys
import site
site.addsitedir('/var/www/FlaskBot/lib/python3.6/site-packages')
sys.path.insert(0, '/var/www/FlaskBot')
from webhookbot import app as application
your apache vhost conf needs:
...
WSGIDaemonProcess hitme user=www-data group=www-data threads=2
WSGIScriptAlias / /var/www/FlaskBot/wsgi.py
<Directory /var/www/FlaskBot/>
Order allow,deny
Allow from all
</Directory>
...
You probably want to create a new user just for this app and chown the files and change it in your apache config file.
Something like:
The text was updated successfully, but these errors were encountered: