Permalink
Fetching contributors…
Cannot retrieve contributors at this time
135 lines (82 sloc) 9.56 KB

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

The easiest (and free) way to deploy any Sails project generated using the "Web App" template is probably via Heroku:

  1. Create a GitHub repo and push your code up to the master branch.
  2. Create a Heroku pipeline, and create a staging app within that pipeline (e.g. my-cool-site-staging)
  3. Using the point-and-click interface, set up that staging Heroku 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 (+ 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).
  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 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.)
  6. In the terminal, make sure you've got everything pulled/pushed and are 100% in sync with the remote master branch on GitHub.
  7. 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:

Microsoft Azure

Azure logo

Google Cloud Platform

Google Cloud Platform logo

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.

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

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.

More options