Beispiel #1
0
import os
import subprocess
from tigergrader import app
from tigergrader.initdb import create_user, init_db

if __name__ == "__main__":
    DEBUG_HOME = os.path.dirname(os.path.realpath(__file__))
    os.environ["TIGERGRADER_SETTINGS"] = os.path.join(DEBUG_HOME, "configuration.py")
    init_db()
    create_user("admin", "*****@*****.**", "admintiger")
    create_user("user", "*****@*****.**", "usertiger")
    subprocess.Popen(['celery', 'worker', '-A', 'tigergrader.grader'])  
    app.run(debug=True, port=8080, host="0.0.0.0")