cd ember
npm install
# verify tests pass
ember test# build for hosting
ember build --environment production
Setup the Rails application
# install ruby-2.3.1cd rails
gem install bundler
bundle
# verify the tests pass
rails db:setup RAILS_ENV=test
rspec
# Setup the database
rails db:setup RAILS_ENV=production
# Setup the production environmentexport SECRET_KEY_BASE=`rails secret`# Activate the server
rails server -e production