You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dcdev run web bundle exec rails db:setup
# or
dcdev run web bundle exec rails db:create
dcdev run web bundle exec rails db:schema:load
dcdev run web bundle exec rails db:seed
Regular dev workflow
Run dcdev up and you are good to go.
To run any Rails related command, just shell dcdev run web bash and execute anything you want inside container.
You can use or add any aliases you want, see docker_dev/Dockerfile. Don't forget to rebuild an image: Run dcdev down to stop everything and dcdev build to rebuild
You might have an issues on Linux OS with permissions on files that created by Docker. Just run chown sudo chown -R YOUR_USER:YOUR_GROUP .
Debugging
Place binding.pry or any other debugger in a place you need
Run docker attach CONTAINER_NAME_web_1 to access console (Note that there might be some issues, see docker/compose#423 (comment))