Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reformat

  • Loading branch information...
commit 36e6e725c8e57b127fd11391cd8125f00885b23f 1 parent a161cb2
@widewebworks authored
Showing with 38 additions and 40 deletions.
  1. +3 −5 app.js
  2. +35 −35 server.js
View
8 app.js
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -21,7 +20,6 @@ module.exports = app;
* Sample route.
*/
-app.get('/', function (req, res) {
- res.send('OMGHI2U2_1');
-});
-
+app.get('/', function(req, res) {
+ res.send('OMGHI2U2_2');
+});
View
70 server.js
@@ -1,35 +1,35 @@
-
-/**
- * Module dependencies.
- */
-
-var up = require('up')
- , http = require('http')
- , uphook = require('../up-hook')
-
-/**
- * Create http server.
- */
-
-var httpServer = http.createServer()
-
-/**
- * Create up server.
- */
-
-var srv = up(httpServer, __dirname + '/app')
-
-/**
- * Leverage uphook middleware.
- */
-
-srv.use(uphook('/tobi', { branch: 'master', cmd: "echo 'a'" }));
-
-/**
- * "Start me up"
- */
-
-httpServer.listen(3000, function (err) {
- if (err) throw err;
- console.log(' \033[96m - listening on *:3000 \033[39m');
-});
+/**
+ * Module dependencies.
+ */
+
+var up = require('up'),
+ http = require('http'),
+ uphook = require('up-hook');
+
+/**
+ * Create http server.
+ */
+var httpServer = http.createServer();
+
+/**
+ * Create up server.
+ */
+var srv = up(httpServer, __dirname + '/app');
+
+/**
+ * Leverage uphook middleware.
+ */
+
+srv.use(uphook('/tobi', {
+ branch: 'master',
+ cmd: "echo 'a'"
+}));
+
+/**
+ * "Start me up"
+ */
+
+httpServer.listen(3000, function(err) {
+ if (err) throw err;
+ console.log(' \033[96m - listening on *:3000 \033[39m');
+});
Please sign in to comment.
Something went wrong with that request. Please try again.