RunningTheApplication - PresConsUIUC/PSAP GitHub Wiki
These instructions pick up where PreparingADevelopmentEnvironment left off.
1) Change to the psap folder
$ cd ~/Projects/psap
(or wherever you put the application)
2) Start the application
$ bin/rails server
This command won't stop running; just leave the terminal window open, and type ctrl+C or close it to stop it.
If you get any errors about missing gems, run $ bundle install
.
If you get any errors about database migrations, run $ bundle exec rake db:migrate
.
Accessing the website
From the same computer:
Open http://localhost:3000/ in a web browser.
Sign in as normal
or admin
with password password
.
From another device, like a phone:
-
Ensure that both the device and the server are on the same network.
-
Do a Spotlight search for "network utility" and open it.
-
Choose "Wi-Fi (enX)" in the pull-down menu.
-
Connect to that IP address in your device's web browser: http://x.x.x.x:3000/
Updating to the latest changes
Updating the application to the latest version from GitHub
$ git pull
Updating the HTML bundles (CIDG, advanced help, user manual)
$ git pull
$ bundle exec rake psap:seed_html_bundles
Updating assessment questions
Ask @adolski about this.
Resetting user data
$ bundle exec rake db:setup
(This will wipe out any user data that already exists.)