Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Running a Rake Task

Harry Levine edited this page Jan 14, 2018 · 5 revisions

Custom Rake Tasks

As we use Docker, you cannot simply call a rake task in the normal way (i.e. rake schools:populate).

Instead, you will need to prefix the rake command with docker-compose run web.

For example, if you wanted to call the schools:populate rake task in your local development environment, from the command line you would call:

docker-compose run web rake schools:populate

Established Rake Tasks

There are a number of common rake tasks and bin/rails commands that have been aliased in the Makefile.

For example, to migrate the database, instead of calling docker-compose run web rake db:migrate, you can call

make db_migrate

You can find that alias, and many others, in the Makefile.