Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague committed Jan 30, 2012
0 parents commit 6566d7f
Show file tree
Hide file tree
Showing 11 changed files with 806 additions and 0 deletions.
Empty file added README
Empty file.
4 changes: 4 additions & 0 deletions cron.yaml
@@ -0,0 +1,4 @@
cron:
- description: periodic timeout check
url: /timeout
schedule: every 1 minutes
28 changes: 28 additions & 0 deletions main.py
@@ -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()

0 comments on commit 6566d7f

Please sign in to comment.