-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Discussion] Announcing zipdeploy integration with Run From Package #48
Comments
Is this available in all regions and OS? I tried this in west us on Linux (set the app setting then did a zip deploy) and saw the typical zip deploy output: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/27jna6c3.zip (2.67 MB) to /tmp/zipdeploy/extracted
Kudu sync from: '/tmp/zipdeploy/extracted' to: '/home/site/wwwroot' I'm super excited to see this btw 👍 EDIT: Disregard that, seems like it's Windows only. I was able to get the deploy (in only 17 seconds btw), but my site isn't running correctly. Preparing deployment for commit id '4a8bda7fb5'.
Skipping build. Project type: Run-From-Zip
Skipping post build. Project type: Run-From-Zip
Updating D:\home\data\SitePackages\packagename.txt with deployment 20180523204729.zip Are there limitations to how the app will be started or should this act like a typical zip deploy? My app (node.js app) doesn't appear to have been started up. The logs show HTTP GET requests and no node.js output. EDIT2: This deployment works beautifully for Functions, but it seems to change the way the Functions show up within the app and breaks the display in the Functions extension. We'll dig into this on the extension side of things though it seems the portal doesn't correctly show the Functions either. |
@fiveisprime In case others are reading this, the issue was that site needed to be restarted, due to a known issue (should be fixed within next week or so). |
How would one enable/disable a function using the zip approach since the mount is read-only? Is the expectation that the app would have to point to a different zip that has the respective function.json with the desired function state? |
@JRiggenbach in v2, disablement is done via App Settings, which are external to the zip. e.g. in a v2 app, try disabling a function, and you'll see an App Setting appear, e.g. |
@davidebbo Thanks for the reply. So this is type of deployment is more geared towards the v2 runtime. Unfortunately I'm not in a position to use the v2 at the moment while it is in preview. I do like this option, and might proceed with it anyway with the assumption that I'll move to v2 once it's in GA. Would there be any reason not to use this type of deployment with v1? |
@JRiggenbach I can't think of a reason not to use it for v1, other than potentially the one you brought up with disablement. The underlying technology is agnostic of v1 vs v2 vs random Web App. |
@davidebbo is this functionality coming to Linux and if so is there an ETA? |
@phawxby it is being discussed for Linux, but there is no timeline yet. @rramachand21 may be able to add more to this. |
I just ran into issues with publishing a webjob. Our build is setup to create a zip file with our webjob and our release is set to upload it to the app service. I created a new release and used the defaults of the "Azure App Service Deploy (v4)"-task which, I guess, uses (edit: Should I have created a new issue instead of a comment?) |
@davidebbo Can we have some guidance about whether Run From Package is a feature supported for WebJobs (instead of Functions)? What about webjob(s) "sharing" the wwwroot with another project/deployment (SPA in our case)? I found nothing in the webjob documentation/github/stackoverflow about webjobs running from package. |
@ggirard07 I'm no longer with the company, but I recall that @ahmelsayed had made some changes specifically to make WebJobs play better with Run From Package. I think there are two models for this:
I'll let him and/or @suwatch / @ankitkumarr comment further. |
David is right regarding the two options. Good memory David :) Let me know if you have any other questions |
Regarding option 2, how do you achieve it from an Azure DevOps release pipeline? I currently use the Also webjobs in |
Sorry I actually re-read your original question and I think I misunderstood it initially. If you want to deploy webjobs with your application in the same zip package, you can put them in the zip file so they end up under The wiki also explains the alternative location of |
@ahmelsayed Thanks for the precision, but it still does not answer about how I can deal with this now (placing the zip content to either The task |
I'm not sure how to achieve that using from Kudu's prospective, you can do that using webjobs APIs (https://github.com/projectkudu/kudu/wiki/WebJobs-API) |
This should just work if you set up your VS project to deploy your WebJobs with your app. When you do that, the built WebJobs become part of the app's artifacts, so they will naturally get bundled up in the package along with everything else. |
@davidebbo I totally forgot that webjobs could be packed directly within the API project. We did not do it at first because webjobs to deploy where selected based on the targeted environment, but this is no longer a requirement. Another use case I have is how to use run from package when using multiple virtual applications on the same web app? |
Please use this thread to discuss Azure/app-service-announcements#110
The text was updated successfully, but these errors were encountered: