{{#supportPython2}}
#!/usr/bin/env python
{{/supportPython2}}
{{^supportPython2}}
#!/usr/bin/env python3
{{/supportPython2}}

import os

from {{packageName}}.server_impl import app, application, mail, celery, setup_app, config_object

def main():
	setup_app('{{appName}}', config_object, template_folder = os.path.join(os.path.dirname(__file__), 'templates'))
	app.run(host=application.config.get("HOST", "localhost"), port=application.config.get("PORT", {{serverPort}}))

if __name__ == '__main__':
	main()
