felipeamarante / ruby-rails-sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I have added docker support to this heroku sample application

This was a quick change just for test and fun! Credentials are set at docker-compose.yml - please change them!!!

deploying on ec2

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

ruby-rails-sample

This is a simple Ruby app using the Rails framework.

Running Locally

Make sure you have Ruby, Bundler and the Heroku Toolbelt installed.

git clone git@github.com: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.

Deploying to Heroku

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:

Deploy to Heroku

Documentation

For more information about using Ruby on Heroku, see these Dev Center articles:

About


Languages

Language:Ruby 77.6%Language:HTML 16.6%Language:CSS 2.9%Language:JavaScript 2.2%Language:CoffeeScript 0.7%