Skip to content

trmccormick/docker-rails-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-rails-dev

Test Enviroment for Vagrant / Docker / Mysql / Rails

Running

Use ("vagrant up --no-parallel") to launch. You can get errors when if you do not start this way.

Mysql Database

To setup the database cd into the docker-host-vm and do a vagrant ssh. Once inside the host run the following commands.

docker exec -t myapp rails db:create

docker exec -t myapp rails db:migrate

If you have setup seed data run docker exec -t myapp rails db:seed

To Do

Would like to add support for loading a saved database and if one wasn't found running the db:create, db:migrate and db:seed. This should happen on vagrant up.

Errors, queries and bugs

References

  1. Running a Rails Development Environment in Docker

About

Test Enviroment for Vagrant / Docker / Mysql / Rails

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published