# Svn: 'vendor/extensions' is not a working copy

**URL:** <https://www.ruby-forum.com/t/svn-vendor-extensions-is-not-a-working-copy/142933>\
**Category:** Radiant CMS\
**Created:** [July 13, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/svn-vendor-extensions-is-not-a-working-copy/142933 "2008-07-13T18:47:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 13, 2008, 6:47pm UTC](https://www.ruby-forum.com/t/svn-vendor-extensions-is-not-a-working-copy/142933/1 "2008-07-13T18:47:16Z")

</div>

Whenever I try to install an extension via subversion like this for  
example:

cd /path/to/radiant

svn propset svn:externals “reorder -r881  
[http://svn.radiantcms.org/radiant/tags/rel\_0-6-7/extensions/reorder/](http://svn.radiantcms.org/radiant/tags/rel_0-6-7/extensions/reorder/)”  
vendor/extensions/.

I get this:

svn: ‘vendor/extensions’ is not a working copy

What is the problem?

I have also tried to manually download and upload the extension via ftp,  
but then the rake command fails:

rake aborted!  
uninitialized constant ApplicationController

Sorry for asking this many questions, couldn’t find a google-solution -  
I would think that a lot of people just give up when trying this but I  
really like Radiant, - maybe I could help a bit with the “getting up and  
running quick” documentation, when I finally succeed?

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 13, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/svn-vendor-extensions-is-not-a-working-copy/142933/2 "2008-07-13T18:56:40Z")

</div>

It looks like your radiant\_app directory is not in subversion, as far  
as I remember from my limited experience with subversion you need to  
have your Radiant application in svn (i.e. the directory containing  
vendor/extensions) prior to adding externals – another possibility is  
to just use svn export instead.

I believe however the core team is dropping the svn repo completely  
soon, so an svn:external pointing there is probably not the best  
longer term solution. You might want to look into git submodules, i.e.

git submodule add git://github.com/radiant/radiant-reorder-  
extension.git vendor/extensions

You can also find tar/zip files for everything on github, i.e.

wget [http://github.com/radiant/radiant-reorder-extension/tarball/master](http://github.com/radiant/radiant-reorder-extension/tarball/master)

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 13, 2008, 7:04pm UTC](https://www.ruby-forum.com/t/svn-vendor-extensions-is-not-a-working-copy/142933/3 "2008-07-13T19:04:49Z")

</div>

Thank you

yes a tried with git on my local system which worked fine, but i don’t  
think site5 (my hosting provider) supports git?

when i try:

git clone git://github.com/radiant/radiant-reorder-extension.git reorder

i get:

-bash: git: command not found

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 13, 2008, 8:36pm UTC](https://www.ruby-forum.com/t/svn-vendor-extensions-is-not-a-working-copy/142933/4 "2008-07-13T20:36:31Z")

</div>

I recently deployed a Radiant project on a new RailsMachine VPS, and I  
found the best way to avoid these issues is to create your local git  
repository in the project, and use Capistrano’s option to copy a tarball  
to the server. (set :deploy\_via, :copy; set :copy\_strategy, :export)  
Then your server doesn’t need git at all. It’s probably past time that  
we create some Radiant-specific recipes for Capistrano, don’t you think?

Sean

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 13, 2008, 7:13pm UTC](https://www.ruby-forum.com/t/svn-vendor-extensions-is-not-a-working-copy/142933/5 "2008-07-13T19:13:45Z")

</div>

Ah, yeah that could be a problem. I bet they have at least one of wget  
or curl installed which you can use to get the tar/zip files.

1. cd /path/to/radiant\_app/vendor/extensions

2. wget  
[http://github.com/radiant/radiant-reorder-extension/tarball/master](http://github.com/radiant/radiant-reorder-extension/tarball/master)

3. tar xzvf radiant-radiant-reorder-  
extension-2295abc88438aef3c1836c24c5e8825e04ef16ef.tar.gz

4. mv radiant-radiant-reorder-  
extension-2295abc88438aef3c1836c24c5e8825e04ef16ef reorder

5. cd …/…

6. rake radiant:extensions:reorder:migrate

Or something along those lines.

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 13, 2008, 9:09pm UTC](https://www.ruby-forum.com/t/svn-vendor-extensions-is-not-a-working-copy/142933/6 "2008-07-13T21:09:18Z")

</div>

You have my vote for Radiant Cap recipes.

-Chris

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 13, 2008, 11:23pm UTC](https://www.ruby-forum.com/t/svn-vendor-extensions-is-not-a-working-copy/142933/7 "2008-07-13T23:23:14Z")

</div>

I finally got the extension working (however some images to the buttons  
are missing?)

I uploaded the tar.gz-file, unpacked it, renamed it to reorder

ran:

rake production db:migrate:extensions

it returned:

# (in /home/chainrea/radapp) == 1 AddPositionToPages: migrating

# – add\_column(:pages, :position, :integer) -\> 0.0335s – Putting all pages in a default order… -\> 0.4285s == 1 AddPositionToPages: migrated (0.4623s)

A warning though - it takes a minute or two before the extensions turns  
up in the admin - at first I thought it didn’t work after all, but then  
the it appeared after a short moment and a couple of manic log-outs/ins.  
🙂 Now it seems radiant is beginning to “radiate” for me… 🙂

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 13, 2008, 11:26pm UTC](https://www.ruby-forum.com/t/svn-vendor-extensions-is-not-a-working-copy/142933/8 "2008-07-13T23:26:58Z")

</div>

On 2008/07/13, at 15:23, Jan frederik Poulsen wrote:

> I finally got the extension working (however some images to the  
> buttons  
> are missing?)

I think you probably forgot to run the update task,

cd /your/radiant\_app  
rake radiant:extensions:reorder:update

That will copy the necessary image and script assets to your public  
folder.

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 13, 2008, 11:39pm UTC](https://www.ruby-forum.com/t/svn-vendor-extensions-is-not-a-working-copy/142933/9 "2008-07-13T23:39:09Z")

</div>

Thank you

another thing one might struggle a bit with is “production” - as a  
RoR-newbie I forgot that I have to target the environment I’m using or  
else it will default to development.

rake production radiant:extensions:reorder:update

---

<div class="post-metadata">

**Author:** ![janpipek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b5e925/32.png) [@janpipek](https://www.ruby-forum.com/u/janpipek)\
**Post date:** [July 13, 2008, 11:32pm UTC](https://www.ruby-forum.com/t/svn-vendor-extensions-is-not-a-working-copy/142933/10 "2008-07-13T23:32:15Z")

</div>

Oh and you can always, cd into your radiant app and run

rake -T

to see what tasks are available. extensions specific tasks will all be  
grouped together in that list (in the radiant:extensions namespace),  
so it’s pretty easy to figure out what tasks a given extension needs  
you to run.
