RailsConf 2014 - Lightning Fast Deployment of Your Rails-backed JavaScript app
Why Stack Overflow recommends it
Stack Overflow users link it when advising how to deploy an Ember or other JavaScript single-page app apart from its Rails or API backend.
Recommended by 3 people across 3 different months, 2014 to 2015.
What it is
A RailsConf 2014 talk by Luke Melia (Yapp) on cutting front-end JavaScript deployment from over five minutes to under 15 seconds with zero downtime. He describes deploying the JS app separately from the Rails server and previewing new releases on production before making them live.
What people said
Strong rec zeppelin · 2014-07 · Stack Overflow · on “Combining SailsJS and EmberJS (routing)”
Think of your backand as something you can't control, like a 3rd party API. The reason is that the optimal routing for a user may differ greatly from what's considered to be good API semantics. It's also not easy to share the route declarations, but it's not a good practice anyway. My advice: Use ember-cli [LINK] to build the frontend. It's a great tool, you'll enjoy it a lot. Build your Sails-based API in a different repository, using the /api namespace for your API endpoints. Try to follow the JSON API standard [LINK] as closely as possible. That'll make easier to connect your backend & frontend, as most data libraries (Ember Data for eg.) tries to adhere those standards as well. Watch Luk
Recommends Vysakh Sreenivasan · 2015-09 · Stack Overflow · on “Precompiled Single-Page-Apps in Phoenix App”
Since you're using emberjs (with separate developers), I would suggest you check this addon for deploy. [LINK] Also check these - [LINK] - [this video]
Recommends andorov · 2015-11 · Stack Overflow · on “Deploy ember-cli and rails api”
I would deploy them separately, and keep them in separate git repos. Ember Use ember-cli-deploy [LINK] . I would suggest you look into the ember-cli-deploy-lightning-pack [LINK] . There is a presentation about it here [this video] . This automates the release process - Builds your Ember app, with asset fingerprints gzips the assets Uploads changed files to AWS S3 Puts the full content of your index.html into Redis Rails deploy your rails-api app to heroku normally include a redis addon set up the route which serves index.html to query it directly from Redis instead I would suggest aliasing all non-api routes (ie a catchall route) to the root route so you can 'deep link' to your ember app A big ad
Cites mwp · 2015-10 · Stack Overflow · on “What would be the best way to use AngularJS with Ruby on Rails?”
The distributable "product" of AngularJS is just HTML and JavaScript (and other static assets), so it can be served up statically. It can be served up from the existing Rails application, or a separate web server, or even a CDN (after the index page has been served); there are a few solution patterns out there for this type of thing. Node.js would only be necessarily if the API were written in e.g. Express or Sails or what have you. [this video]