forked from ui-icts/sparc-request
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDeploymentInstructions
37 lines (26 loc) · 1.35 KB
/
DeploymentInstructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Assumptions/Directions:
* mysql is installed and empty database has been created
* rvm is installed system wide
* httpd is installed
* 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