SPARC Wiki

Capistrano Deployment Instructions

Wenjun He (Unlicensed) 3 (1401 days ago)



Assumptions:

* mysql is installed and empty database has been created

* rvm is installed system wide

* httpd is installed

 

Directions

* gem install passenger

* rvmsudo passenger-install-apache2-module

* copy lines passenger provides into /etc/httpd/conf/httpd.conf

  # this is an example only, use the information provided by phusion passenger

  # load phusion passenger

  LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p286/gems/passenger-3.0.17/ext/apache2/mod_passenger.so

  PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p286/gems/passenger-3.0.17

* create a conf file for the app /etc/httpd/conf.d/sparc-request.conf and change the RackEnv

  <VirtualHost *:80>

      ServerName obis-sparc-dev.mdc.musc.edu

      DocumentRoot /var/www/rails/sparc-rails/current/public

      <Directory /var/www/rails/sparc-rails/current/public>

         AllowOverride all

         Options -MultiViews

         RackEnv testing

      </Directory>

  </VirtualHost>

* capistrano user exists and has access to rvm group

* your public key has been added to the capistrano users .ssh/authorized_keys file

* cap deploy:check and then create any files it needs to the shared folder

* capistrano user has rights to clone the sparc-request repo from github, make sure the capistrano users key is added as key for a user that rights to the repos

* cap deploy










2011-2021 © MUSC Foundation for Research Development