[Ruby] Vlad issues

accessing george george.githinji at gmail.com
Fri Aug 1 02:25:39 PDT 2008


Hi,
I am migrating from capistrano deployment to the no nonsense vlad
unfortunately it really is not easy.

i want to deploy using mongrel cluster proxied to nginx

my *mongrel_cluster.yml* looks like this,
---
cwd: /var/www/app/current
log_file: log/mongrel.log
port: "5000"
environment: production
address: 127.0.0.1
pid_file: /var/www/app/shared/pids/mongrel.pid
servers: 3

my deploy.rb
#vlad recipes for deployment
APP ="app"
set :domain, "domain_ip"
set :deploy_to, "/var/www/#{APP}"
set :repository,  "path_to_repo"

on my rake file i have
begin
    require 'vlad'
    Vlad.load
  rescue LoadError
    # do nothing
  end

I am using the same usernames but different passwords for both development
machine and deployment machine
The subversion repository is on a separate server with a different username
and password and accessible via http

This is the error messaging that i am getting on my development console

/usr/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/lib/mongrel_cluster/init.rb:339:in
`initialize': Permission denied - /var/www/app/shared/mongrel_cluster.conf
(Errno::EACCES)
    from
/usr/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/lib/mongrel_cluster/init.rb:339:in
`open'
    from
/usr/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/lib/mongrel_cluster/init.rb:339:in
`run'
    from
/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in
`run'
    from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
    from /usr/bin/mongrel_rails:19:in `load'
Writing configuration file to
/var/www/kilifivsa/shared/mongrel_cluster.conf.
    from /usr/bin/mongrel_rails:19
rake aborted!
execution failed with status 1: ssh 209.20.81.177 mongrel_rails
cluster::configure -N 2 -p 8000 -e production -a 127.0.0.1 -c
/var/www/kilifivsa/current -C /var/www/app/shared/mongrel_cluster.conf

(See full trace by running task with --trace)

Please can someone help me? where could i be wrong?
can someone point me to some material or tutorial?


Thanks



More information about the Ruby mailing list