Example #1
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
from cookiefree import app, init_for
init_for('dev')

try:
    port = int(sys.argv[1])
except (IndexError, ValueError):
    port = 8020
app.run('0.0.0.0', port=port, debug=True)
Example #2
0
import sys
import os.path
sys.path.insert(0, os.path.dirname(__file__))
from cookiefree import app as application, init_for
init_for('production')