This commit is contained in:
Kenneth Reitz
2011-06-12 14:53:40 -04:00
parent f8a3afd05f
commit 0626b048fa
3 changed files with 63 additions and 3 deletions
+56
View File
@@ -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
+3
View File
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from core import *
+4 -3
View File
@@ -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()