Beispiel #1
0
import sys
import os.path
sys.path.insert(0, os.path.dirname(__file__))
from hascore import app as application, views
with application.test_request_context():
	views.networkbar.cache_networkbar_links()
Beispiel #2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
from hascore import app, init_for, views
init_for('dev')
with app.test_request_context():
	views.networkbar.cache_networkbar_links()

try:
    port = int(sys.argv[1])
except (IndexError, ValueError):
    port = 8070
app.run('0.0.0.0', port=port, debug=True)