Sign inSign up

shilgam/docker-rails

By shilgam

•Updated over 8 years ago

https://github.com/shilgam/docker-rails

Image
0

75

shilgam/docker-rails repository overview

⁠Deployment instructions

  1. Build the Docker image:

     $ docker-compose build
    
  2. Boot the app:

     $ docker-compose up
    
  3. Create the database. In another terminal, run:

     $ docker-compose run web rake db:create
    
  4. View the welcome page: http://localhost:3000⁠

  5. Stop the application:

     $ docker-compose down
    
  6. Restart the application:

     $ docker-compose up
    
  7. Rebuild the application:

    • If you make changes to the Gemfile or the Compose file:

       $ docker-compose up --build
      
    • full rebuild requires a re-run of

      $ docker-compose run web bundle install
      

      to sync changes in the Gemfile.lock to the host, followed by docker-compose up --build.

⁠How to run the test suite

Tag summary

Content type

Image

Digest

Size

413.4 MB

Last updated

over 8 years ago

docker pull shilgam/docker-rails:specs_under_docker