mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-18 17:00:25 +00:00
We can now use coffee-script for the main file, since it will be compiled before being run anyway.
This commit is contained in:
parent
1c209fa827
commit
16fb88fab0
8
src/supervisor.coffee
Executable file
8
src/supervisor.coffee
Executable 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')
|
@ -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');
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user