mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 14:50:17 +00:00
epio
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from core import *
|
||||
+4
-3
@@ -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()
|
||||
Reference in New Issue
Block a user