Linking files to a different path

29 views
Skip to first unread message

Chiel Kunkels

unread,
Mar 10, 2015, 4:06:00 AM3/10/15
to capis...@googlegroups.com
I'm trying to achieve the following:

I have a `/shared/uploads` directory, which I want to symlink to `/vendor/foo/bar/public/uploads` - can this be done using the built-in `linked_files`, or should I do it manually?

Lee Hambley

unread,
Mar 10, 2015, 4:52:36 AM3/10/15
to Capistrano
linked_files will take relative paths. Or you can just use `execute()`
On 10 March 2015 at 09:06, Chiel Kunkels <ch...@kunkels.me> wrote:
I'm trying to achieve the following:

I have a `/shared/uploads` directory, which I want to symlink to `/vendor/foo/bar/public/uploads` - can this be done using the built-in `linked_files`, or should I do it manually?

--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/8804a594-765d-453a-872c-468508edd8cf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chiel Kunkels

unread,
Mar 10, 2015, 5:43:28 AM3/10/15
to capis...@googlegroups.com
How would I pass this array both a source and a destination, a hash within the array?

Lee Hambley

unread,
Mar 10, 2015, 5:48:42 AM3/10/15
to Capistrano

Use execute()

Chiel Kunkels

unread,
Mar 10, 2015, 6:07:38 AM3/10/15
to capis...@googlegroups.com
Alrighty, that's what I have now, just thought maybe there's a cleaner way to do it.

Cheers!

Lee Hambley

unread,
Mar 10, 2015, 6:08:59 AM3/10/15
to Capistrano
I think there is, but I'd only have to go digging through the docs, and I'm sure you already did! Nothing comes to mind immediately, I thought you could put a hash in the array, but I honestly don't know.

Chiel Kunkels

unread,
Mar 10, 2015, 6:33:07 AM3/10/15
to capis...@googlegroups.com
It's all good for now, I'm a bit pressed for time, but I'd love to lend a hand with docs someday, when I understand capistrano a bit better myself. :)
Reply all
Reply to author
Forward
0 new messages