Forum: Ruby on Rails Switchtower error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Felix McCoey (Guest)
on 2006-02-20 05:41
(Received via mailing list)
just upgraded to Switchtower 1.0.0 and am now getting the following
error when doing a 'cold_deploy' (i have just changed the domain name
below):

---SNIP----

servers: ["example.com"]
    [example.com] executing command
 ** [out :: example.com] sudo:
 ** [out :: example.com] no passwd entry for app!
    command finished
rake aborted!
command "sudo -u app
/var/www/vhost/example.com/htdocs/current/script/spin" failed on
example.com

------------

note, i have removed my old 'cold_deploy' task so it should now be using
the new builtin (correct?)

do i have to provide a password in the deploy.rb script? hopefully not.

-felix
Felix McCoey (Guest)
on 2006-02-21 00:45
(Received via mailing list)
ok, read the docs and discovered you have to set either

set :use_sudo, false

or set the user that sudo runs at

set :spinner_user, 'felix'

because if you don't it defaults to the name of the app

-felix
This topic is locked and can not be replied to.