Commit Graph

8 Commits (022f96d40dadcd9520e25737c37d60f27402770d)

Author SHA1 Message Date
Berkeley Martinez 52529a99b1 feat(server): Use debug for prettier logs 2018-01-07 11:18:26 +05:30
Berkeley Martinez de153ebc6f chore(server/production-start): Modernize code 2018-01-07 11:18:26 +05:30
Berkeley Martinez 668bd74690 Fix(lint): Add import eslint and fix import errors 2016-07-28 23:40:01 -07:00
Berkeley Martinez cc0543d5df Fix(lint): correct lint errors 2016-07-28 23:40:01 -07:00
alayek 52a66d6408 Add missing 'connect' in the production-start.js error handler 2016-05-15 16:43:41 +05:30
Berkeley Martinez 877c69255b Increase time for DB connect in production 2016-02-06 22:58:41 -08:00
Logan Tegman 6d176005b8 Change babel/register to babel-register 2016-01-20 09:03:58 -08:00
Berkeley Martinez c0eda90eb1 make production future ready
This commit does the following:

Production start should use the following command `npm run
start-producion` this first runs bower install and builds the front end
app(react). Then it will use the `pm2Start` script. This script will set
up the pm2 daemons to run loopback in cluster mode. This script also use
`production-start` script instead of the regular `server` script.

The reasons are two fold: to ensure `server` is run in es7 mode, and to
wait for handshake from DB or kill itself if no DB can be found within a
certain amount of time.
2015-07-24 22:27:52 -07:00