forked from vegantech/sims
/
deployment
47 lines (29 loc) · 1.2 KB
/
deployment
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
38
39
40
41
42
43
44
45
To deploy the sims-open demo (assumes you have apache/mod_rails configured already and rails
and sqlite3 is installed on the server):
sudo gem install capistrano
Modify the depoy.rb file to use your own servers and deploy_to location
(see http://capify.org for more information on capistrano)
I'm installing it in /www my server which shawn can write to. If you're doing something else,
you probably want to change use_sudo to true. If you installed ruby enterprise edition,
you will also want to put that in your path. Otherwise change the default_environment line in the
deploy.rb to suit your needs.
Now run
cap deploy:setup
cap deploy:check
cap deploy:cold
To deploy the updates run cap deploy:cold again
Note: The database will be reset every time you deploy a new version.
This will change once it is meaningful to persist data.
Here's my apache config
<VirtualHost *>
Options FollowSymLinks
ServerName sims-open.vegantech.com
ServerAlias *.sims-open.vegantech.com
DocumentRoot /www/sims-open/current/public
<Directory "/www/sims-open/current/public">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>