2 thoughts on “Run heroku migrations on each deploy by piggybacking on assets:precompile

  1. Did you also try the following? It adds a dependency between the tasks, if you the ENV var is set. Might be cleaner than starting a new command.

    # Rakefile
    task “assets:precompile” => “rake db:migrate”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s