This is my deploy file set :application, "varcasa stage" set :repository, "file:///c:/svnrepo/thenali/trunk" # ============================================================================# ROLES # ============================================================================# You can define any number of roles, each of which contains any number of # machines. Roles might include such things as :web, or :app, or :db, defining # what the purpose of each machine is. You can also specify options that can # be used to single out a specific subset of boxes in a particular role, like # :primary => true. role :web, "varcasa.com" role :app, "varcasa.com" When I try to do "setup" from my local system I am getting this following error rake aborted! getaddrinfo: no address associated with hostname. ./lib/tasks/switchtower.rake:17:in `switchtower_invoke'' Any Ideas? -- Rgds, --Siva Jagadeesan http://www.varcasa.com/ My First Rails Project. Powered by Typo and soon by RForum too -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060201/8940ee4a/attachment.html
Siva Jagadeesan wrote:> This is my deploy file > > set :application, "varcasa stage" > set :repository, "file:///c:/svnrepo/thenali/trunk"During deployment a source code checkout (or export) is needed from the deployment machine. This is not possible if our repository is accessible only trough the local "file://". -- Company - http://primalgrasp.com Thoughts - http://deezsombor.blogspot.com
On Jan 31, 2006, at 10:17 PM, Siva Jagadeesan wrote:> This is my deploy file > > set :application, "varcasa stage" > set :repository, "file:///c:/svnrepo/thenali/trunk"SwitchTower does not work with file:// repositories. Please use svn://, svn+ssh://, or http://. - Jamis> > # > ====================================================================== > ======> # ROLES > # > ====================================================================== > ======> # You can define any number of roles, each of which contains any > number of > # machines. Roles might include such things as :web, or :app, > or :db, defining > # what the purpose of each machine is. You can also specify options > that can > # be used to single out a specific subset of boxes in a particular > role, like > # :primary => true. > > role :web, "varcasa.com" > role :app, "varcasa.com" > > > When I try to do "setup" from my local system I am getting this > following error > > rake aborted! > getaddrinfo: no address associated with hostname. > ./lib/tasks/switchtower.rake:17:in `switchtower_invoke'' > > > Any Ideas? > > -- > > Rgds, > --Siva Jagadeesan > http://www.varcasa.com/ > My First Rails Project. Powered by Typo and soon by RForum too > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
On Wednesday, February 01, 2006, at 7:06 AM, Jamis Buck wrote:>On Jan 31, 2006, at 10:17 PM, Siva Jagadeesan wrote: > >> This is my deploy file >> >> set :application, "varcasa stage" >> set :repository, "file:///c:/svnrepo/thenali/trunk" > >SwitchTower does not work with file:// repositories. Please use svn:/ >/, svn+ssh://, or http://. > >- Jamis >It is not the case in this setup but ''file://'' should work if the repository and the server are on the same host. In fact that was the only way I could make it work without the need to enter the password during the deployment. Roustem -- Posted with http://DevLists.com. Sign up and save your time!
My server is hosted by Dreamhost and subversion is running in my local system. When I started my subversion server and changed my svn repository set :repository, http://localhost/thenali/trunk It prompted me for password. but when I entered my password for the server. Rake just aborted without giving any error message Having --verbose option didnt help either any idea?! On 1 Feb 2006 15:35:59 -0000, Roustem Karimov <bounce@devlists.com> wrote:> > > On Wednesday, February 01, 2006, at 7:06 AM, Jamis Buck wrote: > >On Jan 31, 2006, at 10:17 PM, Siva Jagadeesan wrote: > > > >> This is my deploy file > >> > >> set :application, "varcasa stage" > >> set :repository, "file:///c:/svnrepo/thenali/trunk" > > > >SwitchTower does not work with file:// repositories. Please use svn:/ > >/, svn+ssh://, or http://. > > > >- Jamis > > > > It is not the case in this setup but ''file://'' should work if the > repository and the server are on the same host. In fact that was the > only way I could make it work without the need to enter the password > during the deployment. > > Roustem > > -- > Posted with http://DevLists.com. Sign up and save your time! > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Rgds, --Siva Jagadeesan http://www.varcasa.com/ My First Rails Project. Powered by Typo and soon by RForum too -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060201/a9f72796/attachment.html
On Wednesday, February 01, 2006, at 12:50 PM, Siva Jagadeesan wrote:>My server is hosted by Dreamhost and subversion is running in my local >system. > >When I started my subversion server and changed my svn repository > >set :repository, http://localhost/thenali/trunk > >It prompted me for password. but when I entered my password for the server. >Rake just aborted without giving any error message > >Having --verbose option didnt help either > >any idea?! >Siva, Unfortunately, this configuration will not work for you -- there is not way for Dreamhost server to connect to your repository if you specify ''localhost''. You need to use real domain name. To validate that your repository name is correct, you should be able to run ''svn checkout <repository-name-here>'' command on the Dreamhost server. Roustem -- Posted with http://DevLists.com. Sign up and save your time!
oh okay that makes sense I will try to give my ip address and try later this evenin and let you know -- Rgds, --Siva Jagadeesan http://www.varcasa.com/ My First Rails Project. Education Through Collabration -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060201/8065ebb1/attachment.html
Still I have no success with SWitchtower setup in Dreamhost. I have no idea what I am doing wrong. My setup Stage Domain -> stage.varcasa.com Prod Domain -> varcasa.com StageDB -> varcasatest ProdDB -> varcasa Production is running some dispatch.fcgi processes. I want to first test in stage and then move to production. My deploy.rb set :user, ''sivajag''> set :application, "varcasa" > set :repository, " > svn+ssh://sivajag@cms.varcasa.com/home/sivajag/svn/varcasa/varcasa" > role :web, "stage.varcasa.com" > role :app, "stage.varcasa.com" > role :db, "stage.varcasa.com", :primary => trueset :deploy_to, "/home/#{user}/stage.varcasa.com" desc "Restart the FCGI processes on the app server as a regular user."> task :restart, :roles => :app do > #run "killall -9 dispatch.fcgi" > run "chmod 771 #{current_path}/script/process/*" > run "#{current_path}/script/process/reaper" > endI want to setup stage without restarting prod dispatch.fcgi processes. rake setup > run successfully and setup files on remote environment rake deploy > failed this is the error I am getting> servers: ["stage.varcasa.com"] > processing command > [stage.varcasa.com] executing command > command finished > transaction: commit > executing task restart > executing "chmod 771 > /home/sivajag/stage.varcasa.com/current/script/process/*" > servers: ["stage.varcasa.com"] > processing command > [stage.varcasa.com] executing command > command finished > executing "/home/sivajag/stage.varcasa.com/current/script/process/reaper" > servers: ["stage.varcasa.com"] > processing command > [stage.varcasa.com] executing command > [out :: stage.varcasa.com] Couldn''t find any process matching: > /home/sivajag/stage.varcasa.com/curre > nt/script/process/spinner > [out :: stage.varcasa.com] Couldn''t find any process matching: > /home/sivajag/stage.varcasa.com/curre > nt/public/dispatch.fcgi > [out :: stage.varcasa.com] Couldn''t find any process matching: > /home/sivajag/stage.varcasa.com/curre > nt/script/process/spinner > command finishedI have no idea badly need help.. my production date has been moved becoz of this Rgds, --Siva Jagadeesan http://www.varcasa.com/ My First Rails Project. Education Through Collabration On 2/1/06, Siva Jagadeesan <sivajagdev@gmail.com> wrote:> > oh okay that makes sense > > I will try to give my ip address and try later this evenin and let you > know > -- > Rgds, > --Siva Jagadeesan > http://www.varcasa.com/ > My First Rails Project. > Education Through Collabration >-- Rgds, --Siva Jagadeesan http://www.varcasa.com/ My First Rails Project. Education Through Collabration -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060214/5f5d0905/attachment.html
On Feb 13, 2006, at 9:41 PM, Siva Jagadeesan wrote:> this is the error I am getting > servers: ["stage.varcasa.com"] > processing command > [stage.varcasa.com] executing command > command finished > transaction: commit > executing task restart > executing "chmod 771 /home/sivajag/stage.varcasa.com/current/script/ > process/*" > servers: ["stage.varcasa.com"] > processing command > [stage.varcasa.com] executing command > command finished > executing "/home/sivajag/stage.varcasa.com/current/script/process/ > reaper" > servers: ["stage.varcasa.com"] > processing command > [stage.varcasa.com] executing command > [out :: stage.varcasa.com] Couldn''t find any process matching: / > home/sivajag/stage.varcasa.com/curre > nt/script/process/spinner > [out :: stage.varcasa.com] Couldn''t find any process matching: / > home/sivajag/stage.varcasa.com/curre > nt/public/dispatch.fcgi > [out :: stage.varcasa.com] Couldn''t find any process matching: / > home/sivajag/stage.varcasa.com/curre > nt/script/process/spinner > command finished > > I have no idea > > badly need help.. my production date has been moved becoz of thisSiva, Please note that the ''Couldn''t find any process matching" is not an error--only an informational message indicating that you don''t have a spinner process running. What version of Rails are you using? Older versions of the reaper would basically tell the spinner process to "speed up" it''s polling during a deployment. Current versions do not appear to do this. - Jamis
I am running ruby 1.8.2 (2005-04-11) [i386-linux] in dreamhost I have no idea what I am missing On 2/14/06, Jamis Buck <jamis@37signals.com> wrote:> > On Feb 13, 2006, at 9:41 PM, Siva Jagadeesan wrote: > > > this is the error I am getting > > servers: ["stage.varcasa.com"] > > processing command > > [stage.varcasa.com] executing command > > command finished > > transaction: commit > > executing task restart > > executing "chmod 771 /home/sivajag/stage.varcasa.com/current/script/ > > process/*" > > servers: ["stage.varcasa.com"] > > processing command > > [stage.varcasa.com] executing command > > command finished > > executing "/home/sivajag/stage.varcasa.com/current/script/process/ > > reaper" > > servers: ["stage.varcasa.com"] > > processing command > > [stage.varcasa.com] executing command > > [out :: stage.varcasa.com] Couldn''t find any process matching: / > > home/sivajag/stage.varcasa.com/curre > > nt/script/process/spinner > > [out :: stage.varcasa.com] Couldn''t find any process matching: / > > home/sivajag/stage.varcasa.com/curre > > nt/public/dispatch.fcgi > > [out :: stage.varcasa.com] Couldn''t find any process matching: / > > home/sivajag/stage.varcasa.com/curre > > nt/script/process/spinner > > command finished > > > > I have no idea > > > > badly need help.. my production date has been moved becoz of this > > Siva, > > Please note that the ''Couldn''t find any process matching" is not an > error--only an informational message indicating that you don''t have a > spinner process running. What version of Rails are you using? Older > versions of the reaper would basically tell the spinner process to > "speed up" it''s polling during a deployment. Current versions do not > appear to do this. > > - Jamis > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Rgds, --Siva Jagadeesan http://www.varcasa.com/ My First Rails Project. Education Through Collabration -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060214/6dbb583a/attachment-0001.html
On Feb 14, 2006, at 8:35 AM, Siva Jagadeesan wrote:> I am running ruby 1.8.2 (2005-04-11) [i386-linux] in dreamhost > > I have no idea what I am missingSiva, I''m not clear on what the problem is. The output of your script looks fine to me, but I''m not a Dreamhost user and so may not know what a correctly Dreamhost deployment ought to look like. Any dreamhost users out there that care to comment? - Jamis> > > On 2/14/06, Jamis Buck <jamis@37signals.com> wrote: On Feb 13, > 2006, at 9:41 PM, Siva Jagadeesan wrote: > > > this is the error I am getting > > servers: [" stage.varcasa.com"] > > processing command > > [stage.varcasa.com] executing command > > command finished > > transaction: commit > > executing task restart > > executing "chmod 771 /home/sivajag/stage.varcasa.com/current/script/ > > process/*" > > servers: ["stage.varcasa.com"] > > processing command > > [stage.varcasa.com] executing command > > command finished > > executing "/home/sivajag/stage.varcasa.com/current/script/process/ > > reaper" > > servers: ["stage.varcasa.com"] > > processing command > > [stage.varcasa.com] executing command > > [out :: stage.varcasa.com] Couldn''t find any process matching: / > > home/sivajag/stage.varcasa.com/curre > > nt/script/process/spinner > > [out :: stage.varcasa.com] Couldn''t find any process matching: / > > home/sivajag/stage.varcasa.com/curre > > nt/public/dispatch.fcgi > > [out :: stage.varcasa.com] Couldn''t find any process matching: / > > home/sivajag/stage.varcasa.com/curre > > nt/script/process/spinner > > command finished > > > > I have no idea > > > > badly need help.. my production date has been moved becoz of this > > Siva, > > Please note that the ''Couldn''t find any process matching" is not an > error--only an informational message indicating that you don''t have a > spinner process running. What version of Rails are you using? Older > versions of the reaper would basically tell the spinner process to > "speed up" it''s polling during a deployment. Current versions do not > appear to do this. > > - Jamis > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > -- > Rgds, > --Siva Jagadeesan > http://www.varcasa.com/ > My First Rails Project. > Education Through Collabration > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
On Feb 14, 2006, at 9:41 AM, Jamis Buck wrote:> On Feb 14, 2006, at 8:35 AM, Siva Jagadeesan wrote: > >> I am running ruby 1.8.2 (2005-04-11) [i386-linux] in dreamhostAlso, what version of Rails are you running? (Not Ruby, but the Rails framework itself.) - Jamis>> >> I have no idea what I am missing > > Siva, > > I''m not clear on what the problem is. The output of your script > looks fine to me, but I''m not a Dreamhost user and so may not know > what a correctly Dreamhost deployment ought to look like. > > Any dreamhost users out there that care to comment? > > - Jamis > >> >> >> On 2/14/06, Jamis Buck <jamis@37signals.com> wrote: On Feb 13, >> 2006, at 9:41 PM, Siva Jagadeesan wrote: >> >> > this is the error I am getting >> > servers: [" stage.varcasa.com"] >> > processing command >> > [stage.varcasa.com] executing command >> > command finished >> > transaction: commit >> > executing task restart >> > executing "chmod 771 /home/sivajag/stage.varcasa.com/current/ >> script/ >> > process/*" >> > servers: ["stage.varcasa.com"] >> > processing command >> > [stage.varcasa.com] executing command >> > command finished >> > executing "/home/sivajag/stage.varcasa.com/current/script/process/ >> > reaper" >> > servers: ["stage.varcasa.com"] >> > processing command >> > [stage.varcasa.com] executing command >> > [out :: stage.varcasa.com] Couldn''t find any process matching: / >> > home/sivajag/stage.varcasa.com/curre >> > nt/script/process/spinner >> > [out :: stage.varcasa.com] Couldn''t find any process matching: / >> > home/sivajag/stage.varcasa.com/curre >> > nt/public/dispatch.fcgi >> > [out :: stage.varcasa.com] Couldn''t find any process matching: / >> > home/sivajag/stage.varcasa.com/curre >> > nt/script/process/spinner >> > command finished >> > >> > I have no idea >> > >> > badly need help.. my production date has been moved becoz of this >> >> Siva, >> >> Please note that the ''Couldn''t find any process matching" is not an >> error--only an informational message indicating that you don''t have a >> spinner process running. What version of Rails are you using? Older >> versions of the reaper would basically tell the spinner process to >> "speed up" it''s polling during a deployment. Current versions do not >> appear to do this. >> >> - Jamis >> >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> >> >> -- >> Rgds, >> --Siva Jagadeesan >> http://www.varcasa.com/ >> My First Rails Project. >> Education Through Collabration >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
I am using Rails 1.0.0 Switchtower did checkout all my files from SVN and created needed directory struct in my remote system. It is failing to start dispatch.fcgi. So I tried to run manually dispatch.fcgi, I am getting a internal 500 error. I looked into logs nothin is avialable On 2/14/06, Jamis Buck <jamis@37signals.com> wrote:> > On Feb 14, 2006, at 9:41 AM, Jamis Buck wrote: > > > On Feb 14, 2006, at 8:35 AM, Siva Jagadeesan wrote: > > > >> I am running ruby 1.8.2 (2005-04-11) [i386-linux] in dreamhost > > Also, what version of Rails are you running? (Not Ruby, but the Rails > framework itself.) > > - Jamis > > >> > >> I have no idea what I am missing > > > > Siva, > > > > I''m not clear on what the problem is. The output of your script > > looks fine to me, but I''m not a Dreamhost user and so may not know > > what a correctly Dreamhost deployment ought to look like. > > > > Any dreamhost users out there that care to comment? > > > > - Jamis > > > >> > >> > >> On 2/14/06, Jamis Buck <jamis@37signals.com> wrote: On Feb 13, > >> 2006, at 9:41 PM, Siva Jagadeesan wrote: > >> > >> > this is the error I am getting > >> > servers: [" stage.varcasa.com"] > >> > processing command > >> > [stage.varcasa.com] executing command > >> > command finished > >> > transaction: commit > >> > executing task restart > >> > executing "chmod 771 /home/sivajag/stage.varcasa.com/current/ > >> script/ > >> > process/*" > >> > servers: ["stage.varcasa.com"] > >> > processing command > >> > [stage.varcasa.com] executing command > >> > command finished > >> > executing "/home/sivajag/stage.varcasa.com/current/script/process/ > >> > reaper" > >> > servers: ["stage.varcasa.com"] > >> > processing command > >> > [stage.varcasa.com] executing command > >> > [out :: stage.varcasa.com] Couldn''t find any process matching: / > >> > home/sivajag/stage.varcasa.com/curre > >> > nt/script/process/spinner > >> > [out :: stage.varcasa.com] Couldn''t find any process matching: / > >> > home/sivajag/stage.varcasa.com/curre > >> > nt/public/dispatch.fcgi > >> > [out :: stage.varcasa.com] Couldn''t find any process matching: / > >> > home/sivajag/stage.varcasa.com/curre > >> > nt/script/process/spinner > >> > command finished > >> > > >> > I have no idea > >> > > >> > badly need help.. my production date has been moved becoz of this > >> > >> Siva, > >> > >> Please note that the ''Couldn''t find any process matching" is not an > >> error--only an informational message indicating that you don''t have a > >> spinner process running. What version of Rails are you using? Older > >> versions of the reaper would basically tell the spinner process to > >> "speed up" it''s polling during a deployment. Current versions do not > >> appear to do this. > >> > >> - Jamis > >> > >> _______________________________________________ > >> Rails mailing list > >> Rails@lists.rubyonrails.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails > >> > >> > >> > >> -- > >> Rgds, > >> --Siva Jagadeesan > >> http://www.varcasa.com/ > >> My First Rails Project. > >> Education Through Collabration > >> _______________________________________________ > >> Rails mailing list > >> Rails@lists.rubyonrails.org > >> http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Rgds, --Siva Jagadeesan http://www.varcasa.com/ My First Rails Project. Education Through Collabration -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060214/2329fc94/attachment-0001.html
> During deployment a source code checkout (or export) is needed from the > deployment machine. This is not possible if our repository is accessible > only trough the local "file://".Hi, I am wondering how far one can go without using SwitchTower.I simply copy the files on to the server (naive I know ).SwitchTower seems to need a svn repository.I think most people have a local copy of the source which they want to deploy on a host.I dont see any reason why SwitchTower mandates a svn repository.Cant it just copy files from the local repository to the host? Vivek -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060219/29bd3360/attachment.html
On Feb 19, 2006, at 1:10 AM, Vivek Krishna wrote:> During deployment a source code checkout (or export) is needed from > the > deployment machine. This is not possible if our repository is > accessible > only trough the local "file://". > > Hi, > I am wondering how far one can go without using SwitchTower.I > simply copy the files on to the server (naive I know ).SwitchTower > seems to need a svn repository.I think most people have a local > copy of the source which they want to deploy on a host.I dont see > any reason why SwitchTower mandates a svn repository.Cant it just > copy files from the local repository to the host?Sure it can, but you''ll need to write the tasks to do that yourself. The reason for the use of svn is that is the way we do it at 37signals. Not everyone will do it that way, but it has worked well for us. If you write tasks for other deployment approaches, please do share them. - Jamis
On Feb 19, 2006, at 12:10 AM, Vivek Krishna wrote:> I am wondering how far one can go without using SwitchTower.I imagine you can go completely crazy. :-)> I simply copy the files on to the server (naive I > know ).SwitchTower seems to need a svn repository.I think most > people have a local copy of the source which they want to deploy on > a host. > I dont see any reason why SwitchTower mandates a svn > repository.Cant it just copy files from the local repository to the > host?SwitchTower, out of the box, mandates a repository, and not just a Subversion repository but also supports CVS, Bazaar, Bazaar NG, and Perforce. It does this because it''s "The Right Way to Do It" When I first encountered version control, ala CVS in 1999 or so, I thought it was a big drag and extra overhead that would serve no purpose. I resisted its implementation for a month or so until the person who was advocating its use finally went ahead and sucked out code in and gave a demonstration of it''s use. In five minutes'' time, I was absolutely smitten, and wished I had been using it since 1978. Where had CVS been my whole life? I now had the ability to know what I had done and where I was at, EVEN WHEN IT WAS JUST ME WRITING CODE. All of the other benefits of version control took a bit longer to sink it, but the ability to isolate changes (branch), remember release points (tag), work fluidly with co-workers without ever losing code, hack as aggressively as I wanted to without fear of losing what worked previously, and a complete freedom from ever worrying about making copies with names like file.old, file.date, file,bak, etc. is just something I''ll never work without again. Take a few minutes to get your code into Subversion and you''ll be happy you did. Programmers should NOT work without version control. When Rails was pre 1.0, there was a lot of stress after each release with people not being sure how to gracefully upgrade their source trees to the new version. Those of us under version control had no such stress: 1) Commit all changes 2) Run upgrade 3) Run diff to see what changed 4) Pick and choose the changes we wanted The benefits just go on and on... -- -- Tom Mornini
I agree, I have my servers in a colo and my svn repository behind the firewall in my office, so the colo can''t access the svn repository. I am looking at doing a deploy method in switchtower that will copy the source tree from a local directory to the target servers, if you had svn locally it would do an svn export to a local temporary directory, then copy the results to the targets. If I get this done I''ll give it to Jamis for consideration for inclusion in the next release. Vivek Krishna wrote:> > Hi, > I am wondering how far one can go without using SwitchTower.I simply > copy the files on to the server (naive I know ).SwitchTower seems to > need a svn repository.I think most people have a local copy of the > source which they want to deploy on a host.I dont see any reason why > SwitchTower mandates a svn repository.Cant it just copy files from the > local repository to the host? > > Vivek > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
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
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 Felix McCoey wrote:> 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