Skip to content

Commit

Permalink
Merge pull request #1 from jaumard/master
Browse files Browse the repository at this point in the history
Fix failsafeconfig to add i18n defaults
  • Loading branch information
tjwebb committed Apr 19, 2016
2 parents 7e3516b + b8b5bdf commit 27f2665
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/.idea
# Logs
logs
*.log
Expand Down
6 changes: 5 additions & 1 deletion lib/failsafeconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ module.exports = {
},
config: {
i18n: {
lng: 'en'
lng: 'en',
resources: {en: {}}
},
main: {
paths: {
Expand All @@ -24,6 +25,9 @@ module.exports = {
web: {
port: 3000,
host: 'localhost'
},
views: {

}
}
}
11 changes: 6 additions & 5 deletions lib/trailpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,24 @@
const Trailpack = require('trailpack')

module.exports = class KeepaliveTrailpack extends Trailpack {
constructor (app) {
constructor(app) {
super(app, {
pkg: {
name: 'trailpack-smokesignals'
},
config: { }
config: {}
})
}

/**
* Wait for some stuff so that the process does not exit.
*/
configure () {
this.interval = setInterval(function(){}, Math.POSITIVE_INFINITY);
configure() {
this.interval = setInterval(function () {
}, Math.POSITIVE_INFINITY);
}

unload () {
unload() {
clearInterval(this.interval)
}
}

0 comments on commit 27f2665

Please sign in to comment.