Logo
Explore Help
Sign In
gaspersic/freeCodeCamp
1
0
Fork 0
You've already forked freeCodeCamp
Code Issues Pull Requests Projects Releases Wiki Activity
Files
5ea9eb2d9e262200f34d6a3f31eac6db9379f53d
freeCodeCamp/server/debug-entry.js

6 lines
130 B
JavaScript
Raw Normal View History

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:22:40 -07:00
// use this file with runners like node-debug
// or mocha.
Change babel/register to babel-register
2016-01-20 09:03:58 -08:00
require('babel-register');
add entry for use with plain node or node-debug start i.e. `node-debug server/debug-entry`
2015-07-01 15:02:03 -07:00
var app = require('./server');
app.start();
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.4 Page: 65ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API