Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Ruby on Rails project from another computer

I'm still a beginner in developing Ruby on Rails apps. I've developed a project on my old laptop. And I want to open it on my new one. When I download the project from github, I am not able to perform "heroku open". I receive the following error: "No app specified".

And if I write git push heroku master, it says "Not a git repository".

Can you help me please? Thanks a lot!

like image 744
firewall Avatar asked Mar 11 '26 06:03

firewall


2 Answers

  1. Pull the project down from GitHub using git clone
  2. Change into the project directory using cd [project_name]
  3. Install the gems using bundle install
  4. Create the database rake db:create
  5. Run the migrations rake db:migrate
  6. Read this thread on someone with the same error message
  7. Read this thread

Let me know if this solves your problems.

like image 99
Powers Avatar answered Mar 13 '26 23:03

Powers


First create a Heroku app

heroku create

This will create a remote Git repository called "heroku". You can check for this by using

git remote -v

Then, deploy your app to heroku with

git push heroku master

You can get full details on the Heroku Docs: https://devcenter.heroku.com/articles/git

like image 20
Amy.js Avatar answered Mar 13 '26 21:03

Amy.js



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!