2016-06-28 132 views
0

我試圖運行在服務器上的angular2測試應用程序,它工作正常本地機器上NPM開始在我的包JSON:永遠「NPM啓動」服務器上

"start": "concurrent \"npm run tsc:w\" \"npm run lite\" ". 

我怎麼能運行npm start服務器永遠通過?我試過forever start -c "npm start" /path/to/app/dir/,但它不起作用。

+0

當前正在調查=> http://stackoverflow.com/questions/37362765/how-to-run-angular-2-app-in-background –

回答

0

最後剛做了NPM安裝在服務器上,似乎直接開箱工作相對路徑存在輕微問題,但通過更改服務器上的文件夾解決了問題。我猜'npm開始'不需要在最後..謝謝