我的.env文件中有我的heroku配置vars,所以我必须使用foreman在本地运行我的应用程序。我需要使用节点检查器进行调试,而且我不想手动重新启动我的应用程序,所以我也想使用nodemon。
我该如何在一起使用无恶魔、节点检查员和工头?
发布于 2015-05-22 12:13:59
这很简单--实际上,只是把它们全部链接在一个命令中。
# start node-inspector in the background
$ node-inspector &
# make nodemon execute foreman with debugging options enabled for app.js with
## either
$ nodemon --exec "foreman run node --debug-brk app.js"
## or
$ nodemon --exec "foreman run node --debug app.js"你就完蛋了!
https://stackoverflow.com/questions/30396452
复制相似问题