开发者

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 source开发者_JS百科s. I assume this is because it is not an actual rails app; just a directory with files in it.


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 git@github.com: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


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


Did you run the command

bundle install

?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜