dhttpd icon indicating copy to clipboard operation
dhttpd copied to clipboard

serve using `serveFilesOutsidePath`?

Open devoncarew opened this issue 10 years ago • 4 comments

I think we need to pass serveFilesOutsidePath into the createStaticHandler in order to serve content in the packages folders. They symlink to the project's main packages folder, which symlinks to the pub-cache - outside of the web server's root.

devoncarew avatar Apr 26 '15 04:04 devoncarew

sgtm

sethladd avatar Apr 26 '15 16:04 sethladd

I kinda wish Pub copied all those directories into your project. Disk is cheap. Symlinks suck.

sethladd avatar Apr 26 '15 16:04 sethladd

When I'm deploying to appengine, I remove all symlinks from the build/web directory (recursively, and then create one realized copy of packages in build/web (real files, not symlinks). This prevents the appengine deploy from trying to copy 4 billion copies of the files.

devoncarew avatar Apr 26 '15 18:04 devoncarew

Definitely. There's a grinder task for that, right? :)

sethladd avatar Apr 26 '15 20:04 sethladd