We can now use coffee-script for the main file, since it will be compiled before being run anyway.

This commit is contained in:
Page 2014-04-27 22:50:51 +01:00 committed by Pablo Carranza Vélez
parent 1c209fa827
commit 16fb88fab0
2 changed files with 8 additions and 10 deletions

8
src/supervisor.coffee Executable file
View File

@ -0,0 +1,8 @@
process.on 'uncaughtException', (e) ->
console.log('Got unhandled exception', e)
knex = require './db'
# Wait for the DB schema to be created
knex.init.then ->
require('./app')

View File

@ -1,10 +0,0 @@
process.on('uncaughtException', function (e) {
console.log('Got unhandled exception', e)
})
var knex = require('./db')
// Wait for the DB schema to be created
knex.init.then(function () {
require('./app');
})