# SwitchTower and SCGI

**URL:** <https://www.ruby-forum.com/t/switchtower-and-scgi/95183>\
**Category:** Rails\
**Created:** [January 14, 2006, 1:35am UTC](https://www.ruby-forum.com/t/switchtower-and-scgi/95183 "2006-01-14T01:35:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Francois\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/53a042/32.png) [@Francois\_B](https://www.ruby-forum.com/u/Francois_B)\
**Post date:** [January 14, 2006, 1:35am UTC](https://www.ruby-forum.com/t/switchtower-and-scgi/95183/1 "2006-01-14T01:35:17Z")

</div>

Hi !

Following the manual, section 2.6 describes how to replace the restart  
task. Since I’m using Lighttpd and SCGI, I did the following:

desc “Restart the web server”  
task :restart, :roles =\> :app do  
sudo “cd #{deploy\_to}/#{current} && scgi\_cluster stop \<  
#{deploy\_to}/#{current}/config/.password”  
sudo “cd #{deploy\_to}/#{current} && scgi\_cluster start”  
end

Is it normal that I have to build the path myself ? Is there a  
variable that’s not mentionned anywhere that returns the whole path at  
once, instead of having to build it myself, piecemeal ?

If not, I know I can build it myself, using a Proc, near the start of  
deploy.rb.

Thanks !

---

<div class="post-metadata">

**Author:** ![Francois\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/53a042/32.png) [@Francois\_B](https://www.ruby-forum.com/u/Francois_B)\
**Post date:** [January 14, 2006, 1:53am UTC](https://www.ruby-forum.com/t/switchtower-and-scgi/95183/2 "2006-01-14T01:53:23Z")

</div>

Hi !

2006/1/13, Francois B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Following the manual, section 2.6 describes how to replace the restart  
> task. Since I’m using Lighttpd and SCGI, I did the following:

I know, bad form to reply to self, but I already know about my  
current\_dir error. I also found in the manual release\_path, which is  
what I was searching for.

Sorry for the noise.

Where should additions to the manual be posted ?

Bye !

---

<div class="post-metadata">

**Author:** ![Francois\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/53a042/32.png) [@Francois\_B](https://www.ruby-forum.com/u/Francois_B)\
**Post date:** [January 14, 2006, 5:00am UTC](https://www.ruby-forum.com/t/switchtower-and-scgi/95183/3 "2006-01-14T05:00:07Z")

</div>

On Jan 13, 2006, at 5:52 PM, Francois B. wrote:

> Sorry for the noise.
> 
> Where should additions to the manual be posted ?

Please post them to the rails trac as enhancements to SwitchTower.

[http://dev.rubyonrails.org/newticket](http://dev.rubyonrails.org/newticket)

- Jamis
