First you'll want to install Ruby. Any version as long as it's 2.0 or greater should be fine
First install bundler:
$ gem install bundlerWhen you've got bundler installed you can install the Gems for the project.
cd into the project. After that run:
$ bundle install --without production$ bundle exec rake db:migrateAt this point you should be able to start the server with
$ bundle exec ruby app.rbYou can access the server at http://localhost:3000
To create a migration file when changing the database schema run
$ bundle exec rake db:create_migration NAME=migration_name_hereFor example if we wanted to make a migration file that creates a questions table we might run
$ bundle exec rake db:create_migration NAME=create_questionsAfter you create a migration you'll have to run bundle exec rake db:migrate again to reflect those changes in the database.
To run a console where you can do things like Level.all Question.first run
$ bin/consoleCTRL+D will quit IRB
Create an account on Heroku.
On the Heroku dashboard you will need to create a new application. You will also need to add the "Heroku Postgres" addon for the database.
You will need to install the Heroku Toolbelt.
Once it is installed you will need to login using the following command:
$ heroku loginFirst you want to change directory to the project directory.
Then you will need to tell git about the Heroku app we made.
$ heroku git:remote -a app-name-hereThen you will be able to push to Heroku to deploy the application:
$ git push heroku masterIf this is the first time deploying the application you will also need to setup the database using:
$ heroku run bundle exec rake db:migrateAfter that you should be able to access the app at app-name-here.herokuapp.com