microblog2/runp-mysql.fcgi

11 lines
211 B
Plaintext
Raw Normal View History

2013-04-15 06:13:17 +00:00
#!flask/bin/python
# use mysql
2013-04-22 05:08:46 +00:00
os.environ['DATABASE_URL'] = 'mysql://apps:apps@localhost/apps'
2013-04-15 06:13:17 +00:00
from flup.server.fcgi import WSGIServer
from app import app
if __name__ == '__main__':
WSGIServer(app).run()