mongrel_clusterでRailsをデプロイ
rubyneko - 誰でも30秒ぐらいでできるrailsのデプロイ
mongrel_rails cluster::configure Writing configuration file to config/mongrel_cluster.yml.
config/mongrel_cluster.yml
log_file: log/mongrel.log port: 4000 pid_file: tmp/pids/mongrel.pid servers: 5 environment: production prefix: /shiritori
mongrel_rails cluster::start
すると4000~4004の5つが起動しました
starting port 4000 starting port 4001 starting port 4002 starting port 4003 starting port 4004
4000~4004で起動する
止める時は
mongrel_rails cluster::stop
これでhttp://shokai.mag.keio.ac.jp:4000/shiritori/でrailsが動いているはず