Search code examples
ruby-on-railsherokugithubdatabase-migrationcloud9-ide

How to rake database to Heroku on cloud9


I'm a noobie to Heroku, Github and RoR, so this week I'm stumbling through it.

I have a DB on Git and I'd like to clone it and push it to my Heroku App via Cloud9 (I'm working on a chromebook)

I can't use the commands in the C9 terminal:

    heroku run rake db:migrate
    heroku restart

tl;dr: How do I migrate a git DB to a Heroku app's Database from Cloud9?

oh, and also: If I'm using the wrong terminology, just let me know how bad of a person I am and correct me.


Solution

  • Whilst Cloud9 supports git deployments you can't run the commands that you need to via their console to manage your application. You will need to use the heroku gem locally to manage your application which isn't going to be possible on a Chrome book. Your best option will be use use a VPS server somewhere that you can SSH into (assuming that's possible) to work via.