ACMCMU / BoredPrototype

A not-so-boring school project. Original version: http://tinyurl.com/cmuboredcast ... See below for prototype.
http://teudu.herokuapp.com
5 stars 9 forks source link

Teudu

This is the teudu webservice. It's based off of RoR 3.1.

Deploying

To deploy, ssh into our server and restart Apache2, as follows:

ssh root@teudu.andrew.cmu.edu

Go to web site directory (/var/www/teudu)

Pull from repo

bundle install --path vendor/bundle

Clean all assets

Restart the server

Database

We test online with the app deployed to Heroku. Since Heroku uses Postgres instead of sqlite, you should run bundle install with the development context. bundle install --without production

Adding new moderators

Open up rails console

If user does not already exist in system: Save new user record in database

If user does already exist in system Modify user's record in database

Setup

Certificate stuff http://www.cmu.edu/computing/web/authenticate/webiso/apache.html http://www.cmu.edu/computing/doc/web/ca/request-certs.html

Debian RubyOnRails/passenger/apache installation https://gist.github.com/1102852

Set write permissions for key directories (from Rails root directory)

Pubcookie setup (Read from step 7 onwards and stop after the command ./keyclient. DO NOT execute ./keyclient -G keys/pubcookie_granting.cert) http://parsedout.com/2007/12/installing-pubcookie-33-on-ubuntu-710-with-apache-2/

WebISO/pubcookie integration https://github.com/alexcrichton/rack-pubcookie https://github.com/alexcrichton/oa-pubcookie