Created
January 10, 2017 16:39
-
-
Save ipmb/4d8f2def75ef23f56944477349ce1ca2 to your computer and use it in GitHub Desktop.
broken buildpack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: server.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
from bottle import route, run | |
PORT = os.environ.get('PORT', 8080) | |
@route('/') | |
def index(): | |
return '<b>Hello world</b>!' | |
run(host='0.0.0.0', port=PORT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from setuptools import setup | |
setup( | |
name='build-test', | |
version='1.0', | |
scripts=['server.py'], | |
install_requires=['bottle'], | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment