web-deployment

Pros and Cons of a separate image server (e.g. images.mydomain.com)?

[亡魂溺海] 提交于 2019-11-27 20:46:56
问题 We have several images and PDF documents that are available via our website. These images and documents are stored in source control and are copied content on deployment. We are considering creating a separate image server to put our stock images and PDF docs on - thus significantly decreasing the bulk of our deployment package. Does anyone have experience with this approach? I am wondering about any "gotchas" - like XSS issues and/or browser issues delivering content from the alternate sub

Deploy Angular 2 with Azure Webapp

亡梦爱人 提交于 2019-11-27 19:09:41
How can can I deploy an angular 2 webapp to azure? I guess I need some type of final compilation script. Thanks in advance. Amir Sasson In order to run angular2 app in azure follow these steps: create a new ng app (with ng cli) : ng new testApp and push to some github repo . create Azure deployment files for Kudu : npm install azure-cli -g azure site deploymentscript --node this will create 2 files .deployment and deploy.cmd edit the deploy.cmd remove the --production from the line :: 3. Install npm packages so that all dependencies will be installed (including ng cli) add under the section of

The target “MSDeployPublish” does not exist in the project

℡╲_俬逩灬. 提交于 2019-11-27 17:25:46
问题 I know there have been other references to this issue. But I didn't upgrade from one version of VS to another. I am currently using VS 2013. The project builds fine, and has even deployed successfully in the past. This is a brand new app. So it wasn't something inherited from another project. Where can I start looking? What can I post here that may be helpful for you guys to hopefully help me? It is a web api 2 site. I am using the publish command within VS2013. 回答1: Adding the lines below to

Advanced tasks using Web.Config transformation

China☆狼群 提交于 2019-11-27 17:08:11
Does anyone know if there is a way to "transform" specific sections of values instead of replacing the whole value or an attribute? For example, I've got several appSettings entries that specify the Urls for different webservices. These entries are slightly different in the dev environment than the production environment. Some are less trivial than others <!-- DEV ENTRY --> <appSettings> <add key="serviceName1_WebsService_Url" value="http://wsServiceName1.dev.domain.com/v1.2.3.4/entryPoint.asmx" /> <add key="serviceName2_WebsService_Url" value="http://ma1-lab.lab1.domain.com/v1.2.3.4

Meteor.js deploy to “example.com” or “www.example.com”?

微笑、不失礼 提交于 2019-11-27 16:57:22
I recently deployed a meteor app using the following command: $ meteor deploy example.com and later (thinking that it was the same) using the following: $ meteor deploy www.example.com It end up serving two different versions of the app, one hosted in "example.com" and other hosted in "www.example.com". Can I revert one of the deploys? Which one should I revert? If not, what kind of configs should I set on my domain provider? Thank you, Joao travellingprog When people go to your page, do you want them to see mydomain.com or www.mydomain.com ? If it's mydomain.com , then you want to set your

App_Offline in MSBuild Remote Web Deploy

霸气de小男生 提交于 2019-11-27 14:30:41
问题 I have the following task in my MSBuild script to deploy to a remote server using Web Deploy (MSDeploy service): <Target Name="Deploy"> <MSBuild Projects="$(SolutionFile)" Properties="Configuration=Release; DeployOnBuild=True; DeployTarget=MsDeployPublish; MSDeployPublishMethod=WMSvc; MsDeployServiceUrl=$(DeployServiceUrl); DeployIisAppPath=$(DeployIisAppPath); UserName=$(DeployUserName); Password=$(DeployPassword); CreatePackageOnPublish=True; AllowUntrustedCertificate=True" /> </Target> It

How can I ensure that appsettings.dev.json gets copied to the output folder?

好久不见. 提交于 2019-11-27 14:03:59
问题 I have three configuration files, one for each environment: appsettings.json -> production appsettings.dev.json -> development appsettings.stg.json -> staging If I set ASPNETCORE_ENVIRONMENT to dev , I get a runtime exception complaining about not being able to find appsettings.dev.json. I tried adding "copyToOutput": [ "appsettings.dev.json" ] to the buildOptions section in project.json but it doesn't seem to have any effect. Is there another way I can force appsettings.dev.json to be copied

How can I programmatically stop or start a website in IIS (6.0 and 7.0) using MsBuild?

女生的网名这么多〃 提交于 2019-11-27 11:21:18
I have Windows Server 2003 (IIS 6.0) and Windows Server 2008 (IIS 7.0) servers, and I use MSBuild for deploying web applications. I need to do a safe deploy, and do this: Stop a website in IIS 6 (or an Application in IIS 7), not stop AppPool. Check if the website is stopped; not running. If the website is stopped, do another task for deploy. Start the website IIS 6 (or Application in IIS 7), How can I achieve this? Update: Key for me: IIS6WebSite and IIS6AppPool (and for IIS7), do wait for stopped status when try Stop Website or AppPool? When I execute Stop Action for Website (or Stop Action

Make Web.config transformations work locally

杀马特。学长 韩版系。学妹 提交于 2019-11-27 11:20:05
I want to get web.config transformations working locally but apparently the transformations only occur when doing deployments. Does anybody know of a way to run the msbuild target "TransformWebConfig" without it going through the "rebuild" process and also specify and output directory where to spit out the transformed web.config? EDIT : Using Sayed's answer, I created a .bat file to do run the task for me: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Msbuild.exe "D:\Demo\Transformation.proj" /t:TransformWebConfig copy /Y "D:\Demo\Web.config" "D:\MyProject\Web.config" del ""D:\Demo\Web

Web deployment task failed. (The type initializer for 'Microsoft.Web.Deployment.DeploymentManager' threw an exception.)

眉间皱痕 提交于 2019-11-27 11:18:13
I am getting the following error when I use web deploy from visual studio 2010. Web deployment task failed. (The type initializer for 'Microsoft.Web.Deployment.DeploymentManager' threw an exception.) I suddenly started getting this error! I published my website many many times with all the same settings, but suddenly it started to give me this error. Could it be something in the website properties? I am using asp.net and have Windows 7 and publishing to Windows Server R2. Please help! Okay, so I hit this problem and none of these answers worked for me. I boiled it down to a single line of code