Skip to content

Commit

Permalink
Add deployment notes to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Puchalski committed Feb 7, 2011
1 parent b0403a6 commit 5b7142a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 5b7142a

Please sign in to comment.