Skip to content

iprog21/rails-docker-easy-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rails-docker-easy-setup

Steps

  1. docker-compose run --no-deps web rails new . --force --database=postgresql
  2. sudo chown -R $USER:$USER . (For Linux user)
  3. docker-compose build
  4. Update database.yml
  default: &default
    adapter: postgresql
    encoding: unicode
    host: db
    username: postgres
    password: password
    pool: 5

  development:
    <<: *default
    database: myapp_development


  test:
    <<: *default
    database: myapp_test
  1. docker-compose up
  2. docker-compose run web rake db:create
  3. http://localhost:3000
  source: https://docs.docker.com/compose/rails/
  Demo: https://www.youtube.com/watch?v=VQ4zIpSTTgM&t=3s

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published