سؤال

أحاول إنشاء حزمة نشر Azure باستخدام CSPACE على خادم Build الخاص بي لنشر DevFabric (CSRUN) على خادم اختبار.تقوم CSPACE بنسخ ثنائيات دور الويب والملفات في حزمة CSX، ولكنها تتطلب أيضا مسار "SitephysicalDirectory" لكل دور ويب، وهو مضمن في ملف "Rolemodel.xml".يجب أن توجد هذا الدليل في وقت الحزمة.

عند النشر، يقوم CSRun بإعداد موقع IIS يشير مباشرة إلى مسار SitePhysicalDirectory ويبدو أنه يتجاهل تماما ثنائيات دور الويب المعبأة في حزمة CSX.وغني عن القول، إن نشر الاختبار على جهاز مختلف لا يعمل.

هل أنا أفتقد شيئا هنا؟لماذا لا تستطيع CSPACE / CSRUN تعيين المسار المادي في IIS إلى Oppoot في حزمة CSX؟ما هو الغرض من حزمة CSX إذا لم يتم استخدام الثنائيات المعبأة؟ماذا تفعل sitephysicaldirectiones في نشر أزور الإنتاج؟

هل كانت مفيدة؟

المحلول

I think part of this has to do with the addition of Full IIS. It used to be the case that your approot directory in Windows Azure was for both the RoleEntryPoint process and the IIS WAS Host (one in the same). However, with full IIS, you would have w3wp.exe running your web code and the WaWorker process executing your RoleEntryPoint.

The decision was made to effectively copy the entire website (which also has the WebRole.cs RoleEntryPoint) to a new directory and root full IIS there. As such, you will notice that your packaging for Web Roles actually contains a copy of your code twice. Once, for the website and once for the WebRole.cs RoleEntryPoint. Only your RoleEntryPoint is executed now out of approot. I don't remember all the technical reasons why this occurred, but it might have been easier/safer to copy the website out rather than risk missing a dependency.

نصائح أخرى

I'm beginning to think the answer to all of those questions is "Because cspack/csrun are poorly-designed piles of garbage that should never have shipped". They seem to be built for Visual Studio support and nothing else.

Manually updating the RoleModel.xml file to set the physicalPath attribute to 'approot' (it's relative to the RoleModel.xml location) after packaging appears to be a viable workaround.

I would think that sitePhysicalDirectory should be set as the folder under AppRoot in your csx package, not the source of your web role binaries & files.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top