Deployment

1. Check the code out from the meeting repository for the specific tag/trunk you need to deploy. The code for meeting rails server app can be found at - https://repos.exphosted.com/svnrepos/meeting/server/

2. Go to the directory with the code checked out. Install all the gems required through bundler.

bundle install

3. Replace the config/bigbluebutton.yml entires with correct set of the following values.

  base_url: http://meeting02.exphosted.com <The BBB server's base URL>
  checksum: 68e467e3d3a2adb966c740bfcca096ae <Checksum of BBB>
  logout_url: http://meeting02.exphosted.com/login <meeting rails app URL + "/login">
  admin_mail_id: meeting@expertus.com <email account used for notifications. Generally, do not have to change this>
  site_base_url: http://meeting02.exphosted.com <Meetings rails apps base url. Generally same as that of base_url>
  dialin_number: 613-555-1234 <Dialin number of BBB>

4. Replace config/database.yml with the database configuration. Create all the new databases if they do not exist already.

rake db:create:all

5. Install the updated gems and run the database migrations.

rake db:migrate RAILS_ENV=<the env>

6. Create the asset packages

 rake asset:packager:build_all 

7. Start the Rails app server on the port you like.

ruby script/server -d -p <port num>

8. Make an entry in the nginx config file to proxy the required URL to the rails application and restart nginx server.