A script to ease the pain of pulling the api repo (and running scheme and data migrations afterwards) locally. Before use, you must:
- set correct directory on line 4 (where your api folder clone is)
It will:
- pull latest changes from remote repo
- check if "Gemfile" was mentioned in the output (and run bundle install if it was)
- run db:migrate (schema migration)
- check for new data migrations and offer to run them
- clean up after schema migration
- offer to run sidekiq
It's worth mentioning that it saves data migration state to ~/.productive_api_migration_state
file.