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

7 lines
131 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');
Fix(lint): Add import eslint and fix import errors
2016-06-23 20:05:30 -07:00
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
app.start();
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 1359ms Template: 6ms
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