Deploying a Sails.js app to Heroku?

梦想的初衷 提交于 2019-12-03 02:25:46

问题


I have limited experience deploying Node.js apps -- how can I deploy a Sails.js app to Heroku?

I've heroku logined and heroku created my app already.


回答1:


You should check out this github repo : heroku-sails It should get you started with sailsjs on heroku

There is a discussion around this particular github repo here on the sails.js google group

These are also resources that can help you get your app running :

  • Sails Deployment Guide
  • An answer of sails.js author to the same question



回答2:


I want to prevent any confusion for those who are familiar to node deployment on heroku. There are a lot of guides to deploying node apps to heroku and a sails app is really no different. If you start a sails app by typing "node app.js" in terminal it will work. Here is the guide put out by Heroku for node apps. The only thing different is that you have a sails rather than a plain vanilla express app.

https://devcenter.heroku.com/articles/getting-started-with-nodejs

I've used this to deploy my sails apps no problem.



来源:https://stackoverflow.com/questions/16205028/deploying-a-sails-js-app-to-heroku

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