def main(argv=None): #db.insert('/home/ph/wiki') db.insert('/home/ph/snippets/python') db.insert('/home/ph/snippets/sql', drop=False) db.insert('/home/ph/snippets/javascript', drop=False) db.insert('/home/ph/snippets/php', drop=False) if argv is None: argv = sys.argv app.debug = True app.run(port=5555)
from wiki import app if __name__ == '__main__': app.run(host='0.0.0.0')
from wiki import app as application if __name__ == "__main__": application.run()
#! /usr/bin/env python if __name__ == "__main__": from wiki import app app.run(debug=True, host="0.0.0.0", port=8000)
#coding=utf8 from wiki import app if __name__ == '__main__': app.run(debug=True)