This was a quick change just for test and fun! Credentials are set at docker-compose.yml - please change them!!!
sudo yum update -f
sudo yum install -f docker
sudo service docker start
sudo usermod -a -G docker ec2-user
sudo curl -L https://github.com/docker/compose/releases/download/1.19.0/docker-compose-`uname -s`-`uname -m` -o /bin/docker-compose
sudo chmod +x /bin/docker-compose
git clone https://github.com/felipeamarante/ruby-rails-sample.git
cd ruby-rails-sample/
docker-compose up -d
docker-compose run web rake db:create
This is a simple Ruby app using the Rails framework.
Make sure you have Ruby, Bundler and the Heroku Toolbelt installed.
git clone [email protected]:heroku/ruby-rails-sample.git # or clone your own fork
cd ruby-rails-sample
bundle
bundle exec rake bootstrap
heroku local
Your app should now be running on localhost:5000.
heroku create
git push heroku master
heroku run rake db:migrate
heroku open
Alternatively, you can deploy your own copy of the app using the web-based flow:
For more information about using Ruby on Heroku, see these Dev Center articles: