Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6566d7f
Showing
11 changed files
with
806 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cron: | ||
- description: periodic timeout check | ||
url: /timeout | ||
schedule: every 1 minutes |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env python | ||
#-*- coding:utf-8 -*- | ||
|
||
import os, sys | ||
import webapp2 | ||
|
||
# add lib to pythonpath | ||
# Is important to do this before try to import webapp2_extras and others from | ||
# lib | ||
#current_path = os.path.abspath(os.path.dirname(__file__)) | ||
#sys.path[0:0] = [ | ||
# os.path.join(current_path, 'lib'), | ||
#] | ||
|
||
import urls | ||
|
||
# find dev server in environ to determine debug status | ||
debug = os.environ.get('SERVER_SOFTWARE', '').startswith('Dev') | ||
# if nose module is loaded, testing is in progress | ||
if 'nose' in sys.modules: debug = True | ||
|
||
app = webapp2.WSGIApplication(routes=urls.urls, debug=debug) | ||
|
||
def main(): | ||
app.run() | ||
|
||
if __name__ == '__main__': | ||
main() |
Oops, something went wrong.