Discussion:
[Wt-interest] deploy-path and docroot
Aaron Laws
2016-04-05 18:36:02 UTC
Permalink
I'm having a bit of difficulty configuring --deploy-path and --docroot.

When I launch from "." and use --docroot=".;css", I can access
./css/styles.css through foobar.com/css/styles.css. This seems clear enough.

When I launch from "." and use --deploy-path="bar" --docroot=".;css", I can
still access ./css/styles.css through foobar.com/css/styles.css. How can I
make that file accessible at foobar.com/bar/css/styles.css ? I see that I
can move styles.css into ./bar/css/, but this doesn't seem very flexible.
Did I miss anything?


In Christ,
Aaron Laws
Koen Deforche
2016-04-08 09:33:35 UTC
Permalink
Hey,
Post by Aaron Laws
I'm having a bit of difficulty configuring --deploy-path and --docroot.
When I launch from "." and use --docroot=".;css", I can access
./css/styles.css through foobar.com/css/styles.css. This seems clear enough.
When I launch from "." and use --deploy-path="bar" --docroot=".;css", I
can still access ./css/styles.css through foobar.com/css/styles.css. How
can I make that file accessible at foobar.com/bar/css/styles.css ? I see
that I can move styles.css into ./bar/css/, but this doesn't seem very
flexible. Did I miss anything?
That's how it is. The docroot configuration does not take into account the
deploy-path (as there could also be multiple deploy paths for multiple
applications deployed, see WServer::addEntryPoint()).

So indeed it's typical that you need to relocate the docroot files into a
folder if you're deploying inside a folder.

Koen

Loading...