Created
June 18, 2015 19:19
-
-
Save inklesspen/ec22120efc02a48714db to your computer and use it in GitHub Desktop.
Montague example
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
[application.main] | |
filter-with = "pony" | |
use = "egg:webtest#debug" | |
[filter.pony] | |
use = "egg:paste#pony" | |
[server.main] | |
use = "egg:waitress" | |
host = "127.0.0.1" | |
port = 8080 |
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 montague import load_app, load_server | |
import os | |
config_path = os.path.join(os.path.dirname(__file__), "config.toml") | |
app = load_app(config_path) | |
server = load_server(config_path) | |
server(app) |
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
Paste==2.0.2 | |
WebTest==2.0.18 | |
montague==0.2.1 | |
montague-toml==0.2.0 | |
waitress==0.8.9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment