azure-functions-rs icon indicating copy to clipboard operation
azure-functions-rs copied to clipboard

Cannot include arbitrary files in the Function

Open rtyler opened this issue 5 years ago • 1 comments
trafficstars

There may be a pattern for including static files, but I'm not finding one :frowning_face:

Steps to reproduce

  • Create a simple function (http binding) and then add some.json to the root.
  • cargo func run (or run via Docker)
  • Note that the script root doesn't have the file inside of it, and any code in the funciton which tries to load the file obviously fails

Expected behavior

  • Static files synced into the root

I'm thinking of this for including big ugly configuration files, where application settings don't make sense. I don't necessarily need to serve static files from the function (but that could be interesting), rather I just need internal files to be available in the sync-root

rtyler avatar Jan 12 '20 21:01 rtyler

Thanks for opening this! I agree there should be some mechanism to easily copy files into the generated script root, which doesn't currently exist.

peterhuene avatar Jan 13 '20 17:01 peterhuene