mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
19 lines
297 B
Python
Executable File
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()
|