![]() ![]() That task is bin/rake db:import:production. In the past, I’ve created shell scripts to the run all of the commands, but I recently had the idea □ to create a Rake task that is easy to memorize and better fits within the paradigms of a Rails app. To do this, you would need to do the following steps:Įach of those steps requires a different command, which I can never memorize. You may want to import a Heroku database locally to replicate and fix an issue or to quickly set up a non-trivial amount of data for development. ![]() Over the years that I’ve been working with Ruby on Rails applications hosted on Heroku, I’ve regularly needed to import the database from Heroku into my local development environment.
0 Comments
Leave a Reply. |