Can I set 2 output directories with different base url?

0 views
Skip to first unread message

nutsmuggler

unread,
Jun 11, 2009, 11:09:46 AM6/11/09
to Webby
Hello folks
I am working on a project which is a subdir in my localhost, so I had
to set a basepath in Sitefile.
However, the output directory is then submitted to the actual server:
there the basepath changes.
The quick and dirty solution is change basepath and recompiling before
deploying to the server. Yet, things would be much easier if I could
set 2 different output directory (called, say, local and deploy),
where the wesite is compiled with 2 different basepath settings.
Thanks in advance,
Davide

Joel VanderWerf

unread,
Jun 11, 2009, 11:54:54 AM6/11/09
to webby...@googlegroups.com

Or you might be able to use the relpath filter:

http://groups.google.com/group/webby-forum/browse_thread/thread/5fb997970446d137

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

Tim Pease

unread,
Jun 11, 2009, 12:09:26 PM6/11/09
to webby...@googlegroups.com

The solution I've used is to have a deploy task that configures the
BASE_PATH on the command line. When the deploy takes place, the output
is regenerated with the correct basepath.

I've not looked at Joel's relpath filter, but he does good work, and
it is to be trusted!

Blessings,
TwP

nutsmuggler

unread,
Jun 12, 2009, 4:12:53 AM6/12/09
to Webby
Thanks; I went with the relpath plugin works like a charm.
Davide
Reply all
Reply to author
Forward
0 new messages