# Is there really a restart task in switchtower? How do you in

**URL:** <https://www.ruby-forum.com/t/is-there-really-a-restart-task-in-switchtower-how-do-you-in/54093>\
**Category:** Rails\
**Created:** [February 22, 2006, 9:47pm UTC](https://www.ruby-forum.com/t/is-there-really-a-restart-task-in-switchtower-how-do-you-in/54093 "2006-02-22T21:47:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [February 22, 2006, 9:47pm UTC](https://www.ruby-forum.com/t/is-there-really-a-restart-task-in-switchtower-how-do-you-in/54093/1 "2006-02-22T21:47:07Z")

</div>

I just created a new rails project “test”.

I then did “switchtower --apply-to ~/user/test test”

I then moved into test and tried “rake restart” and got:

kfelkins@lurch:~/user/test$ rake restart  
(in /home/kfelkins/user/test)  
rake aborted!  
Don’t know how to build task ‘restart’

I see restart in deploy. Can restart be invoked from the command line?

-Kelly

---

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [February 22, 2006, 10:31pm UTC](https://www.ruby-forum.com/t/is-there-really-a-restart-task-in-switchtower-how-do-you-in/54093/2 "2006-02-22T22:31:46Z")

</div>

Kelly F. wrote:

> I just created a new rails project “test”.
> 
> I then did “switchtower --apply-to ~/user/test test”
> 
> I then moved into test and tried “rake restart” and got:
> 
> kfelkins@lurch:~/user/test$ rake restart  
> (in /home/kfelkins/user/test)  
> rake aborted!  
> Don’t know how to build task ‘restart’
> 
> I see restart in deploy. Can restart be invoked from the command line?
> 
> -Kelly

how about:  
rake remote\_exec ACTION=restart  
?

–  
Agnieszka F.

---

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [February 23, 2006, 3:05am UTC](https://www.ruby-forum.com/t/is-there-really-a-restart-task-in-switchtower-how-do-you-in/54093/3 "2006-02-23T03:05:27Z")

</div>

Thank you.

-Kelly

---

<div class="post-metadata">

**Author:** ![aseldo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e95f7d/32.png) [@aseldo](https://www.ruby-forum.com/u/aseldo)\
**Post date:** [February 23, 2006, 12:40am UTC](https://www.ruby-forum.com/t/is-there-really-a-restart-task-in-switchtower-how-do-you-in/54093/4 "2006-02-23T00:40:42Z")

</div>

On 2/22/06, Kelly F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> kfelkins@lurch:~/user/test$ rake restart  
> (in /home/kfelkins/user/test)  
> rake aborted!  
> Don’t know how to build task ‘restart’
> 
> I see restart in deploy. Can restart be invoked from the command line?

I think you may need the following instead…

$ rake remote\_exec ACTION=restart

I’m always forgetting that.

–  
Jack Baty  
Fusionary Media - [http://www.fusionary.com](http://www.fusionary.com)
