Migration to Heroku

3

I am migrating the DB from my app to Heroku , deploy worked:

$ git push heroku master

When trying to migrate the database according to the command $ heroku run rake db:migrate does not work and returns the following error:

  

$: No such file or directory

In the log of heroku it has the following entry:

> $ heroku logs
> $ : No such file or directory00:00 app[web.1]: /usr/bin/env: ruby

How do I resolve this?

    
asked by anonymous 25.02.2015 / 17:35

1 answer

2

The command below locally should solve your problem:

  

rake rails: update: bin

Then try deploy again.

Source: link

    
26.02.2015 / 17:07