Permalink
Browse files

First version of GitHub hook receiver.

  • Loading branch information...
1 parent 954dcb1 commit 81b2410854abb8da87f99403fac38af25219ef18 @baoshan committed May 12, 2012
Showing 437 changed files with 60,843 additions and 0 deletions.
View
@@ -0,0 +1,2 @@
+*.swo
+*.swp
View
6 FAQ.md
@@ -0,0 +1,6 @@
+
+ * ! [rejected] gh-pages -> gh-pages (non-fast-forward)
+
+ Untrack the gh-pages locall by invoking:
+
+ git branch -D gh-pages
View
@@ -0,0 +1,34 @@
+
+# Module dependencies.
+
+express = require 'express'
+routes = require './routes'
+
+app = module.exports = express.createServer()
+
+# Configuration
+
+app.configure ->
+ app.set 'views', __dirname + '/views'
+ app.set 'view engine', 'jade'
+ app.use express.bodyParser()
+ app.use express.methodOverride()
+ app.use app.router
+ app.use express.static __dirname + '/public'
+
+app.configure 'development', ->
+ app.use express.errorHandler
+ dumpExceptions: true
+ showStack: true
+
+app.configure 'production', ->
+ app.use express.errorHandler()
+
+# Routes
+
+app.get '/', routes.index
+
+app.post '/', routes.hook
+
+app.listen 3000
+console.log "Express server listening on port %d in %s mode", app.address().port, app.settings.env

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 81b2410

Please sign in to comment.