Created
March 13, 2018 22:33
-
-
Save anonymous/0a22904852172526394f3da9c3feed8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, render_template, url_for, redirect | |
from flask_sqlalchemy import SQLAlchemy | |
from flask_login import LoginManager | |
from flask_qrcode import QRcode | |
from flask_mail import Mail | |
import datetime | |
app = Flask(__name__) | |
app.config.from_object('config') | |
db = SQLAlchemy(app) | |
lm = LoginManager(app) | |
lm.login_view = 'login' | |
QRcode(app) | |
mail = Mail(app) | |
from SonntagDashboard import routes, models, filter, email | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mar 13 23:29:29.974823 2018] [wsgi:error] [pid 19800:tid 140142573352704] [remote 192.168.100.209:34010] mod_wsgi (pid=19800): Target WSGI script '/srv/http/dashboard/dashboard.wsgi' cannot be loaded as Python module. | |
[Tue Mar 13 23:29:29.974942 2018] [wsgi:error] [pid 19800:tid 140142573352704] [remote 192.168.100.209:34010] mod_wsgi (pid=19800): Exception occurred processing WSGI script '/srv/http/dashboard/dashboard.wsgi'. | |
[Tue Mar 13 23:29:29.975195 2018] [wsgi:error] [pid 19800:tid 140142573352704] [remote 192.168.100.209:34010] Traceback (most recent call last): | |
[Tue Mar 13 23:29:29.975275 2018] [wsgi:error] [pid 19800:tid 140142573352704] [remote 192.168.100.209:34010] File "/srv/http/dashboard/dashboard.wsgi", line 6, in <module> | |
[Tue Mar 13 23:29:29.975303 2018] [wsgi:error] [pid 19800:tid 140142573352704] [remote 192.168.100.209:34010] from SonntagDashboard import app as application | |
[Tue Mar 13 23:29:29.975372 2018] [wsgi:error] [pid 19800:tid 140142573352704] [remote 192.168.100.209:34010] ModuleNotFoundError: No module named 'SonntagDashboard' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerName abc.de | |
ServerAdmin abc.de | |
WSGIDaemonProcess dashboard | |
WSGIScriptAlias / /srv/http/dashboard/dashboard.wsgi | |
DocumentRoot /srv/http/dashboard/ | |
<Directory /srv/http/dashboard/> | |
WSGIProcessGroup dashboard | |
WSGIApplicationGroup %{GLOBAL} | |
WSGIScriptReloading On | |
Require all granted | |
</Directory> | |
ErrorLog /var/log/httpd/error.log | |
LogLevel warn | |
CustomLog /var/log/httpd/access.log combined | |
ServerSignature Off | |
</VirtualHost> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import logging | |
logging.basicConfig(stream=sys.stderr) | |
sys.path.insert(0, '/srv/http/dashboard/SonntagDashboard') | |
from SonntagDashboard import app as application |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment