forked from socialactions/socialactions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
30 lines (23 loc) · 823 Bytes
/
README
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
SocialActions API
Deployment notes:
There is currently no automated deployment, i.e. capistrano. In order to deploy
a new release, use the following steps:
# Install the new source in a datecoded directory
$ mkdir YYMMDD (replace with datecode)
$ cd YYMMDD
# Extract tar and/or checkout from git
# Copy config files into new release
$ cp ../current/config/database.yml config
$ cp ../current/config/application.yml config
# Take down previous version (note this is not a very friendly site take-down,
would be a good idea to use a "under maintenance redirect")
$ cd ../current
$ RAILS_ENV=produciton rake sunspot:solr:stop
$ cd ..
$ rm -f current
# Bring up new version
$ cd YYMMDD
$ RAILS_ENV=produciton rake sunspot:solr:start
$ cd ..
$ ln -s YYMMDD current
$ sudo apachectl graceful