Open lifan0127 opened 6 years ago
I see the same behavior for your step 1-3. The function is uploaded, but it's the original version of the function app, not the packed version - looking in the portal, the .funcpack folder does not appear to have been uploaded.
Version information: Azure Functions Core Tools (2.0.1-beta.24) Function Runtime Version: 2.0.11587.0 funcpack -V: 1.0.0
According to the documentation, we can use the
--copyToOutput
flag to copy all needed files to the.funcpack
directory and then publish from there. It gives the following example:However when I tried this approach, it still published the entire parent directory to Azure instead of the content in
.funcpack
only. Is it the right behavior? Then why we need to publish within.funcpack
?My steps:
func-test
When I created a host.json file in the
.funcpack
directory and published again, it attempted to publish from.funcpack
but failed due toError calling sync triggers
: