diff --git a/server.bat b/server.bat index a4a6664..0451004 100644 --- a/server.bat +++ b/server.bat @@ -4,5 +4,6 @@ WHERE node IF %ERRORLEVEL% NEQ 0 ( echo nodejs is not installed on this system! ) else ( - node server.js + ::node server.js + forever start server.js ) diff --git a/server.js b/server.js index a9b6ab9..4929ab8 100644 --- a/server.js +++ b/server.js @@ -1,7 +1,7 @@ // Start Express web app based on Express // CONFIG -const PublicConfig = require('../config/projects'); +const PublicConfig = require('./config/projects'); var localConfig = new PublicConfig(); const web = require('./server/web');