# Switchtower not updating code

**URL:** <https://www.ruby-forum.com/t/switchtower-not-updating-code/76459>\
**Category:** Rails\
**Created:** [March 3, 2006, 11:34pm UTC](https://www.ruby-forum.com/t/switchtower-not-updating-code/76459 "2006-03-03T23:34:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ray\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a88e57/32.png) [@Ray\_M](https://www.ruby-forum.com/u/Ray_M)\
**Post date:** [March 3, 2006, 11:34pm UTC](https://www.ruby-forum.com/t/switchtower-not-updating-code/76459/1 "2006-03-03T23:34:38Z")

</div>

When I deploy using switchtower the code does not update at all. It  
does however copy the old release into its timestamped directory under  
/releases/, but nothing in /currect/… is updated.

Any help at all would be much appreciated!

---

<div class="post-metadata">

**Author:** ![Ray\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a88e57/32.png) [@Ray\_M](https://www.ruby-forum.com/u/Ray_M)\
**Post date:** [March 4, 2006, 1:36am UTC](https://www.ruby-forum.com/t/switchtower-not-updating-code/76459/2 "2006-03-04T01:36:02Z")

</div>

Ray M. wrote:

> When I deploy using switchtower the code does not update at all. It  
> does however copy the old release into its timestamped directory under  
> /releases/, but nothing in /currect/… is updated.
> 
> Any help at all would be much appreciated!

Do you get a new release under the release directory?  
Does the current point to that new release?  
Is the issue that the new release directory contains the same stuff as  
the old release directory?

Gareth

---

<div class="post-metadata">

**Author:** ![Ray\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a88e57/32.png) [@Ray\_M](https://www.ruby-forum.com/u/Ray_M)\
**Post date:** [March 4, 2006, 10:48am UTC](https://www.ruby-forum.com/t/switchtower-not-updating-code/76459/3 "2006-03-04T10:48:28Z")

</div>

Gareth R. wrote:

> Do you get a new release under the release directory?  
> Does the current point to that new release?  
> Is the issue that the new release directory contains the same stuff as  
> the old release directory?
> 
> Gareth

When it run rake deploy, I do get a new release the release directory  
and it also creates a shortcut inside the current to that… the Issue  
is that thats all it does… it never updates the source with the most  
current source in svn repository.

---

<div class="post-metadata">

**Author:** ![Ray\_M](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/a88e57/32.png) [@Ray\_M](https://www.ruby-forum.com/u/Ray_M)\
**Post date:** [March 5, 2006, 1:04am UTC](https://www.ruby-forum.com/t/switchtower-not-updating-code/76459/4 "2006-03-05T01:04:48Z")

</div>

On Mar 4, 2006, at 1:48 AM, Ray M. wrote:

> current source in svn repository.  
> current should be a symlink into the releases directory.

If there is a current _directory_ there now, it’s probably failing.

If there the user that you’re deploying with doesn’t have permissions  
on the deployment directory, then it could be failing for that reason.

–  
– Tom M.
