V2 Deployment

V2Master

Introduction

This pages describe how to install V2 and MAPS on public beta and production systems.

Installation on V2 Server

Environment

The V2 server is a virtual host on the zg-3.softxs.ch server.

The server has following software systems:

  1. FreeBSD 9.0-RELEASE FreeBSD 9.0-RELEASE #0
  2. Apache Server version: Apache/2.2.23 (FreeBSD)
  3. Phusion Passenger apache module
  4. Ruby: ruby 1.9.3p327 (2012-11-10 revision 37606) [amd64-freebsd9]
  5. Rails 3.2.11
  6. mysql Ver 14.14 Distrib 5.5.28, for FreeBSD9.0 (amd64) using 5.2
  7. And many Gems

The installation location for Rails applications:

  1. /v01/local/www/rails

For each application two items are required:

  1. In the rails directory the following is required:
    1. A directory with the path {app}-app where the git repository is cloned
    2. A symbolic link {app} which points to the {app}-app/public directory
  2. In /usr/local/etc/apache22/httpd.conf there must be a RackBaseUri defined. See below

Example directory structure for the V2pp and MAPS installations:

  1. Note that the V2p0 and MAPS applications are currently configured for the development environment
    • $ cd /v01/local/www/rails
      $ ls -l
      lrwxr-xr-x   1 alan  www    16 Jan 24 13:00 maps -> maps-app/public
      drwxrwxr-x  13 root  www    21 Jan 24 13:00 maps-app
      lrwxr-xr-x   1 root  www    15 Jan 17 16:20 v2p0 -> v2p0-app/public
      drwxrwxrwx  15 alan  www    23 Jan 24 17:14 v2p0-app

Apache Configuration

The following is configured in usr/local/etc/apache22/httpd.conf

Procedure

  1. Log into zg-3.softxs.ch
    1. You must be a member of group www
  2. cd to the {app}-app dircetory
  3. Git pull/fetch
  4. Bundle install
    1. Use 'sudu gem install' as necessary to install any missing Gems
  5. Run rake tasks as necessary
  6. Perform any tweeks in the database as necessary. Use the following user/password to access the DB server
    1. mysql -uroot -psqladmin
  7. Test the result
    1. Open http://v2.softxs.ch/maps

    2. Or open http://v2.softxs.ch/v2p0

Copyright 2008-2014, SoftXS GmbH, Switzerland