Skip to content

Commit

Permalink
Update index.js/app.coffee to require ./sock
Browse files Browse the repository at this point in the history
  • Loading branch information
zeekay committed Jul 3, 2012
1 parent 7b9f2a4 commit 88f8fff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions app.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ app.extend ->

@development ->
require('mongoose').connect 'mongodb://localhost/clash'
require './sock'

@get '/', ->
@render 'layout'
Expand Down
6 changes: 0 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ require('coffee-script');

app = require('./app');

app.__run = app.run;
app.run = function(){
app.__run();
require('./sock');
};

if (!module.parent) {
app.run();
} else {
Expand Down

0 comments on commit 88f8fff

Please sign in to comment.