Deploy Sails.js on Openshift … app restarting over and over [duplicate]

笑着哭i 提交于 2019-12-01 03:48:27

The reason your app will keep restarting over and over is because sails application create a folder called .tmp and put all assets into it. Which means your sails application will write local files. But Openshift use node-supervisor to start node application, and node-supervisor monitor all file changes after starting the application. If any file is changed, node-supervisor will restart the server.

You can try npm i supervisor -g and start your application by typing node-supervisor app.js to see the same log.

I think the solution is to make SailsJS stop writing local files, but I am not sure how to do that yet.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!