-
Notifications
You must be signed in to change notification settings - Fork 1
Initial Docker Setup
Bess Sadler edited this page Sep 6, 2019
·
11 revisions
-
Clone the ucla2019 github repo and cd to that location:
-
git clone https://github.com/RepoCamp/ucla2019.git
-
cd ucla2019
-
To start:
docker-compose run web rails db:setup
docker-compose up
Rails will be running on port 3000.
- To run the test suite ("specs"), leave the processes running that you started with
docker-compose up
and open a new terminal window, then run:
docker-compose run web rspec
- To use byebug:
- After hitting the byebug in your code, run docker ps to get the id for the web container. Copy that id and then run:
docker attach 943094304
- Hit enter and you'll be in the byebug.
- You'll find the bundled gems in the
./bundle
folder. This folder is gitignored to avoid commiting it.