Spencer Cooley
Spencer Cooley

Reputation: 8851

How do you clone a rails app?

I can not find much information on how to do this. How do you get a rails app to work after you clone it from github? When I try to start the server it just gives me an error Could not find activesupport-3.0.7 in any of the sources. I assume this is because it is not an actual rails app; just a directory with files in it.

Upvotes: 3

Views: 3388

Answers (3)

Ben
Ben

Reputation: 13625

You have to remove the Gemfile.lock file, run bundle install and migrate your database.

Upvotes: 4

vaichidrewar
vaichidrewar

Reputation: 9621

After cloning github project you will have to install the gems by running 'bundle install'. Then database has to be created and populated (optionally)

->git clone [email protected]:Project/project.git [A public / private project of github]
->cd project
->bundle install     #installs gems
->rake db:migrate    #creates db 
->rake db:seed       #populate db with seed data (optional)
->rails server       #start server

Upvotes: 6

Msencenb
Msencenb

Reputation: 5104

Did you run the command

bundle install

?

Upvotes: 0

Related Questions