2008/01/23

IT'S PRODUCTION MODE!!

1. In environment.rb, uncomment 
RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION

2. deploy.rb
set :mongrel_servers, 3
set :mongrel_port, xxxx
set :rails_env, 'production'

3. /u/apps/appname/current/config/mongrel_cluster.rb
---
user: deploy
group: deploy
log_file: log/mongrel.log
cwd: /u/apps/appname/current
port: xxxx
environment: production
pid_file: tmp/pids/mongrel.pid
address: 127.0.0.1
servers: 3

4. cap deploy:migrate RAILS_ENV=production

0 comments:

Post a Comment