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.
The easiest (and free) way to deploy any Sails project generated using the "Web App" template is probably via Heroku:
- Create a GitHub repo and push your code up to the
- Create a Heroku pipeline, and create a staging app within that pipeline (e.g.
- Using the point-and-click interface, set up that staging Heroku app to auto-deploy from the
deploybranch of your GitHub repo.
- Under "Add-ons", set up Papertrail for logging, Redis2Go as your production session store (+ for delivering socket messages, if relevant), Heroku Scheduler for scheduled jobs (if relevant), and either MySQL, PostgreSQL, or a MongoDB host for your database (pick any).
- Run through
config/staging.jsin your project and set it up. Any information you feel is too sensitive to hard-code in those files in your repo (like database credentials) can be set up as "Config Variables" in Heroku's user interface. (See bundled config files for examples.)
- In the terminal, make sure you've got everything pulled/pushed and are 100% in sync with the remote master branch on GitHub.
- Then type
sails run deploy.
You can see a demonstration of that in action here.
More resources for using Heroku with Node.js/Sails.js:
- Hello Sails.js: Hosting your Sails.js application on Heroku (2016-2017)
- Platzi: Develop Apps with Sails.js: Pt 2 (2015) (see part 2)
- Sails.js on Heroku (2015)
- SailsCasts: Deploying a Sails App to Heroku (2013)
Google Cloud Platform
It's easy to get enterprise-grade Sails.js apps running on Google Cloud Platform. And because the apps you create will be running on the same infrastructure that powers all of Google's products, you can be confident that they will scale to serve all of your users, whether there are a few or millions of them.
- Run Sails.js on Google Cloud Platform (2016)
- Deploying Sails.js to Google Cloud (2016)
- A couple of Googlers demonstrate and deploy their app built on Sails.js and GO in a talk called
runtime:yoursat Google Cloud Platform Live (2014)
- Troubleshooting: Can't install Sails.js on DigitalOcean (2017)
- How to use PM2 to set up a Node.js production environment on an Ubuntu VPS (2014)
- How to create a Node.js app using Sails.js on an Ubuntu VBS (2013)
Amazon Web Services (AWS)
- Creating a Sails.js application on AWS (2017) (see also this question on ServerFault)
- Deploy a Sails app to AWS
- Your own mini-Heroku on AWS (2014)
- Deploying Sails/Node.js apps to AWS (2012)
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)
- Deploying a Sails / Node.js application to OpenShift (2017)
- Listening to a different IP address on OpenShift (2017-2018) (courtesy @otupman)
- Get Sails/Node.js running on OpenShift (2017) (Warning: quite out of date, but still useful for context. Courtesy @mdunisch.)
- Getting Started: A Simple Sails.js App (2017) on Nanobox
- Quickstart: nanobox-sails
- Official Sails.js Guides
- Official Nanobox Docs
- Nanobox Slack
exoscale / CloudControl
All hosting plans from RoseHosting are fully-managed with free 24/7 support, so you can contact their support team and they will install and configure Sails.js for you.
- Install Sails.js with Apache as a reverse proxy on CentOS 7 (2016)
- Install Sails.js on Ubuntu (2014)
- Like Heroku, there are many other Platform as a Service (PaaS) solutions that support Node.js/Sails.js
- Like Microsoft Azure and EC2, there are many other Node.js/Sails.js-compatible "bare-metal"/IaaS cloud servers
- Like Cloudflare, there are other great CDNs for optimized hosting of your static assets