Run a rails project on a new mac for the first time
Make sure that Rails project's ruby version has been installed on this machine. You might need to install an older version of Ruby, by entering this in Terminal:
Clone a project from GitHub
Go to that project, then get the github url. Then CD to the directory where it should live, like:
Then clone the repok for example:
Install all of the project's gems by running:
Then create the database:
Then migrate the database:
You might need to run these as well:
And then:
Now you should be able to run the server:
Then view the app at either of these:
Last updated