我正在爲我的應用程序使用angular-fullstack。我想用pm2開始我的應用程序。如何使用PM2和Grunt進行部署
Angular-fullstack啓動生產模式grunt serve:dist
,它運行幾個任務,包括設置環境變量。
PM2似乎用js文件啓動應用程序。像pm2 start server.js
我的問題是:
如何使用PM2在Grunt的生產模式下啓動我的應用程序?
我知道我的主應用程序文件是server/app.js
,但我不能簡單地做pm2 start server/app.js
,因爲這些環境變量沒有正確設置。
請看看我的答案** [這裏](http://stackoverflow.com/questions/25007130/how-to-use-grunt-gulp-with-pm2?rq = 1)** – soyuka 2014-11-06 17:43:50
嗨soyuka,我注意到你的答案。但是:1.我沒有提交node_modules。 2.我無法找到咕嚕聲的輸入腳本。這個腳本似乎不起作用:'node ./node_modules/grunt/lib/grunt.js serve'。感謝您的幫助! – Wint 2014-11-07 02:02:09