Mike Legacy
Mike Legacy

Reputation: 1066

Grab Ruby on Rails files and install on local machine

general question that can be used in many different situations, so I thought it would be interesting to ask.

I'm semi new to Ruby and am learning from Treehouse. I am doing the social media site project, and am about half way through.

I was hoping to set up a separate installation from the source files they give you, of the completed site, to do a simple compare and contrast, and really I am just curious as to what the final product is gonna be like.

My question is, is there an easy way to just grab their files, install all the gems and dependencies and run the rails server. If I just try to run the server on the folder, I get a bunch of errors about Gems not being installed and such, which is expected.

If anyone has a process they use when doing things like migrated entire environments from one location to another, it would be appreciated!

Upvotes: 2

Views: 103

Answers (2)

VivekVarade123
VivekVarade123

Reputation: 3694

  1. Go to project directory.

  2. Install all of the required Gems by executing

    bundle install

  3. Create database by executing

    rake db:create

  4. Then migrate the database by executing

    rake db:migrate

  5. And finally run the application using

    rails s

Upvotes: 3

muttonlamb
muttonlamb

Reputation: 6501

If you have cloned their repository, or copied the files to a folder, try running

bundle install

from the command line

Upvotes: 1

Related Questions