Edit Page

Hosting

Here is a non-comprehensive list of Node/Sails hosting providers and a few available community tutorials. Keep in mind that, most of the time, the process for deploying your Sails app is exactly the same as it would be for any other Node.js app. Just be sure to take a look at the other pages in this section of the docs (as well as your app's config/env/production.js file) and make any necessary adjustments before you actually deploy to production.

Heroku

#

Heroku logo

Heroku offers easy, free deployment for any Sails project generated using the Web App template:

  1. Create a GitHub repo and push your code up to the master branch.
  2. Create a Heroku pipeline and a staging app within that pipeline (e.g. my-cool-site-staging).
  3. Using the point-and-click interface, set up that staging app to auto-deploy from the deploy branch of your GitHub repo.
  4. Under "Add-ons", set up Papertrail for logging, Redis2Go as your production session store (and for delivering socket messages, if relevant), Heroku Scheduler for scheduled jobs (if relevant), and a database host of your choosing (e.g. MySQL, PostgreSQL, MongoDB).
  5. Run through config/production.js and config/staging.js in your project and set it up. Any information you feel is too sensitive to hard-code into those files (like database credentials) can be stored in Heroku's config vars (see bundled config files for examples).
  6. In the terminal, make sure you've got everything pulled/pushed and are fully in sync with the remote master branch on GitHub.
  7. Deploy by typing sails run deploy.

You can see a demonstration of this in action here.

More resources for using Heroku with Node.js/Sails.js:
#

Microsoft Azure

#

Azure logo

Google Cloud Platform

#

Google Cloud Platform logo

Using Google Cloud Platform means that your apps run on the same infrastructure that powers all of Google's products, so you can be confident that they'll scale seamlessly—no matter how many users you have.

DigitalOcean

#

DigitalOcean logo

Amazon Web Services (AWS)

#

AWS logo

PM2 (KeyMetrics)

#

PM2 logo

Note: PM2 isn't really a hosting platform, but it's worth mentioning in this section just so you're aware of it.

OpenShift (Red Hat)

#

Red Hat™ OpenShift logo

Nanobox

#

exoscale / CloudControl

#

RoseHosting

#

More options

#

Is something missing?

If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails repo. Once we merge it, the changes will be reflected on the website the next time it is deployed.

Concepts