Skip to content
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.

Local Hosting Crash Course

Scott Opell edited this page Aug 5, 2014 · 1 revision

So you've checked out the version of the app that you want and now you want to see how it looks and test it out.

Its really easy with rails.

rails server

After that, leave it running in a terminal or tmux tab, and open up a web browser to http://localhost:3000 And you should see the website!

Sometimes, if somebody has changed the database or added gems to the project, there will be extra steps.

The first time you do this, you'll definitely need to do both of the below.

If you get a message with something about gems not being found, run bundle install

If you get a message mentioning databases or migrations, run rake db:migrate

Project Specific

The first time you set up your development environment, you will need to do rake addSchools to populate the schools in the database.

If you want an exec account, open the rails console with rails console. The rails console allows you to try out things inside the server such as editing the database. Exec.create(email: '[email protected]', password: 'mypass', password_confirmation: 'mypass') will create an exec user account with the login(email) [email protected] and the password mypass.

Clone this wiki locally