Skip to content

padmam/Heruko_sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<<<<<<< HEAD

ruby-getting-started

A barebones Rails app, which can easily be deployed to Heroku.

This application support the Getting Started with Ruby on Heroku article - check it out.

Running Locally

Make sure you have Ruby installed. Also, install the Heroku Toolbelt.

$ git clone [email protected]:heroku/ruby-getting-started.git
$ cd ruby-getting-started
$ bundle install
$ bundle exec rake db:create db:migrate
$ 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

test to check came here to test again come on or

Deploy to Heroku

Docker

The app can be run and tested using the Heroku Docker CLI plugin.

Make sure the plugin is installed:

heroku plugins:install heroku-docker

Configure Docker and Docker Compose:

heroku docker:init

And run the app locally:

docker-compose up web

The app will now be available on the Docker daemon IP on port 8080.

To work with the local database and do migrations, you can open a shell:

docker-compose run shell
bundle exec rake db:migrate

You can also use Docker to release to Heroku:

heroku create
heroku docker:release
heroku open

Documentation

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

=======

Heruko_sample

Testing heruko

5de38da31f43e972b1bdc4a6c4660cd09a1f5e3d

About

Testing heruko

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published