kevmoo / dhttpd

A simple HTTP server that can serve up any directory, built with Dart.
https://pub.dev/packages/dhttpd
BSD 3-Clause "New" or "Revised" License
107 stars 30 forks source link

serve using `serveFilesOutsidePath`? #10

Open devoncarew opened 9 years ago

devoncarew commented 9 years ago

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.

sethladd commented 9 years ago

sgtm

sethladd commented 9 years ago

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

devoncarew commented 9 years ago

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.

sethladd commented 9 years ago

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