Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 811 Bytes

local-development-using-docker.md

File metadata and controls

31 lines (26 loc) · 811 Bytes

Local development using Docker

First run:

  1. Install Docker

  2. Build the image:

    docker-compose build

    This will build the docker image defined in the Dockerfile. It can take a while to pull images and run the installation steps, but you shouldn't have to repeat this step unless you delete the image.

  3. Create and seed the database:

    docker-compose run plans rake db:setup

    At this point, you're ready to run the development server, tests, or the console as described below.

Subsequent runs:

  • Run the development server:
docker-compose up
  • Run tests:
docker-compose run plans ./bin/rspec spec
  • Run a Rails console:
docker-compose run plans ./bin/rails console