Not sure many folks are using it yet other than 37s, but I''m starting to look at SwitchTower (in edge rails). Anyone know how you specify _what_ you want to release? Is it always just the last global revision? Any hints on how to specify something else? We generally won''t want to just blindly deploy the last revision, given that somebody may have just checked something in that''s not quite right. We''d instead want to do something like release against a tag that''s actually been tested.
On Aug 9, 2005, at 4:37 PM, Michael Schoen wrote:> Not sure many folks are using it yet other than 37s, but I''m > starting to look at SwitchTower (in edge rails). > > Anyone know how you specify _what_ you want to release? Is it > always just the last global revision? > > Any hints on how to specify something else? We generally won''t want > to just blindly deploy the last revision, given that somebody may > have just checked something in that''s not quite right. We''d instead > want to do something like release against a tag that''s actually > been tested.The checkout stuff (in switchtower/scm/*.rb) currently assumes you are checking out the latest revision. (That''s what we do at 37s, anyway, and it works for us because there''s so few of us doing checkins that we can just ask everyone "ok to deploy?" before we deploy.) An ability to specify a revision or tag would be great (though scm-specific)--I don''t have time to look at it right now, but feel free to hack on it and submit a patch. - Jamis
We need this feature too (svn). Let me know if you''re not going to do it and I''d be happy to write the patch. All I want is to specify a revision number to release, no need for branches/tags. Btw, Jamis - is switchtower supposed to use ssh keys? On Aug 9, 2005, at 3:37 PM, Michael Schoen wrote:> Not sure many folks are using it yet other than 37s, but I''m > starting to look at SwitchTower (in edge rails). > > Anyone know how you specify _what_ you want to release? Is it > always just the last global revision? > > Any hints on how to specify something else? We generally won''t want > to just blindly deploy the last revision, given that somebody may > have just checked something in that''s not quite right. We''d instead > want to do something like release against a tag that''s actually > been tested. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Ryan Carver wrote:> We need this feature too (svn). Let me know if you''re not going to do > it and I''d be happy to write the patch. All I want is to specify a > revision number to release, no need for branches/tags.You may need it before I get to it -- I''m just starting to bring my team up to speed on Rails, so it''ll be a few weeks before we''re actually going to deploy anything. Just a revision number is probably what we''d want as well. If you do submit a patch, I''d be happy to help test. And if I get to it first, I''ll let you know. ;-)
On Aug 9, 2005, at 5:01 PM, Ryan Carver wrote:> We need this feature too (svn). Let me know if you''re not going to > do it and I''d be happy to write the patch. All I want is to specify > a revision number to release, no need for branches/tags. > > Btw, Jamis - is switchtower supposed to use ssh keys?Currently, it does not. The reason is because some of the tasks my need to use sudo, which needs a password, and since you''d have to specify the password anyway, switchtower just uses password authentication. However, Scott Barron had a suggestion that I have to implement: allow ssh keys to be used to log in, and when (if?) sudo is used, and if it asks for a password, _then_ prompt for a password. Shouldn''t be too hard to do, but I haven''t had any time at all to work on anything fun for the last 2 days. - Jamis
On Aug 9, 2005, at 7:52 PM, Jamis Buck wrote:> On Aug 9, 2005, at 5:01 PM, Ryan Carver wrote: > >> We need this feature too (svn). Let me know if you''re not going to do >> it and I''d be happy to write the patch. All I want is to specify a >> revision number to release, no need for branches/tags. >> >> Btw, Jamis - is switchtower supposed to use ssh keys? > > Currently, it does not. The reason is because some of the tasks my > need to use sudo, which needs a password, and since you''d have to > specify the password anyway, switchtower just uses password > authentication. > > However, Scott Barron had a suggestion that I have to implement: allow > ssh keys to be used to log in, and when (if?) sudo is used, and if it > asks for a password, _then_ prompt for a password. > > Shouldn''t be too hard to do, but I haven''t had any time at all to work > on anything fun for the last 2 days. > > - Jamis >Also, sudo can cache the password you give it for some (configurable) amount of time, so subsequent runs of switchtower during that time, with this change, would not require any passwords be entered at all. Marcel was also inquiring about using keys this afternoon, so we''ve got the interest. I switchtowered all my apps today, using darcs, it went pretty smoothly though the reaper is doing something odd for my restarts (using lighttpd). I''m still looking into it. By the way, if you''re using darcs with ST you''ll want to look at #1929 on the trac. -Scott
> However, Scott Barron had a suggestion that I have to implement: > allow ssh keys to be used to log in, and when (if?) sudo is used, > and if it asks for a password, _then_ prompt for a password.Cool, that''s the way like to see it. Then, to go completely password- free you can use /etc/sudoers