The shipyard worked on an example of this during a meeting in Boston Amber. Here is the video .
They posted the code online, an important part of which is the task of deploying the rake file :
task :deploy do sh 'git checkout production' sh 'git merge rails-served-html -m "Merging master for deployment"' sh 'rm -rf backend/public/assets' sh 'cd frontend && BROCCOLI_ENV=production broccoli build ../backend/public/assets && cd ..' unless `git status` =~ /nothing to commit, working directory clean/ sh 'git add -A' sh 'git commit -m "Asset compilation for deployment"' end sh 'git subtree push -P backend heroku master' sh 'git checkout -' end
Essentially, you copy the dist from ember-cli directly to the Rails shared folder, then expand the rails subfolder as the rails application in Heroku using the subtree. I did it myself and it works well.
Please note that the @ eXa Lightning Fast Deployment blog post approach is ultimately better since you can change your Ember app without touching or reconfiguring the Rails app.
Sam selikoff
source share