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:
rvm install x.x.xClone a project from GitHub
Go to that project, then get the github url. Then CD to the directory where it should live, like:
cd ~/code/activeThen clone the repok for example:
git clone https://github.com/CasJam/zipmessage.gitInstall all of the project's gems by running:
bundleThen create the database:
rails db:createThen migrate the database:
rails db:migrateYou might need to run these as well:
yarnAnd then:
rails assets:precompileNow you should be able to run the server:
rails sThen view the app at either of these:
Last updated