Files
stacks-puppet-node/api/runserver.py
2016-08-15 12:11:31 -04:00

19 lines
297 B
Python
Executable File

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Onename API
Copyright 2015 Halfmoon Labs, Inc.
~~~~~
"""
import os
from api import app
def runserver():
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port)
if __name__ == '__main__':
runserver()