diff --git a/epio.ini b/epio.ini new file mode 100644 index 0000000..9072ca6 --- /dev/null +++ b/epio.ini @@ -0,0 +1,56 @@ +# This is an example epio.ini file. +# We suggest you edit it to fit your application's needs. +# Documentation for the options is available at www.ep.io/docs/epioini/ + +[wsgi] + +# Location of your requirements file +entrypoint = httpbin:app +requirements = reqs.txt + + +[static] + +# Serve the static directory directly as /static +# /static = static + + +[services] + +# Uncomment to enable the PostgreSQL service. +# postgres = true + +# Uncomment to enable the Redis service +# redis = true + + +[checkout] + +# By default your code is put in a directory called 'app'. +# You can change that here. +# directory_name = my_project + + +[env] + +# Set any additional environment variables here. For example: +# IN_PRODUCTION = true + + +[symlinks] + +# Any symlinks you'd like to add. As an example, link 'config.py' to 'configs/epio.py' +# config.py = configs/epio.py + + +# If you're using Django, you'll want to uncomment some or all of these lines +# [django] +# # Path to your project root, relative to this directory. +# base = . +# [static] +# # Serve the admin media +# /media = ../shortcuts/django-admin-media/ +# [env] +# # Use a different settings module for ep.io (i.e. with DEBUG=False) +# DJANGO_SETTINGS_MODULE = production_settings + diff --git a/httpbin/__init__.py b/httpbin/__init__.py index e69de29..c2fdbad 100644 --- a/httpbin/__init__.py +++ b/httpbin/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from core import * \ No newline at end of file diff --git a/httpbin/core.py b/httpbin/core.py index 702787b..d12908a 100644 --- a/httpbin/core.py +++ b/httpbin/core.py @@ -12,9 +12,10 @@ from flask import Flask app = Flask(__name__) -@app.route("/") +@app.route('/') def hello(): - return "Hello World!" + return 'Hello World!' -if __name__ == "__main__": + +if __name__ == '__main__': app.run() \ No newline at end of file