web-deployment

Enable authentication for IIS app in Powershell

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 05:34:47
I know how you set this for IIS web site by following command: Set-WebConfigurationProperty -filter "/system.webServer/security/authentication/windowsAuthentication" -name enabled -value true -PSPath "IIS:\" -location $siteName But I want to set it for the applications inside that website. For example, I have IIS website named "MySite" and inside that, there are two applications. I want to enable Windows authentication for one and not for the other. So enabling at site level will be enabled for both and that is what I don't want. JamesQMurphy You don't need separate -PSPath and -Location

H14 error in heroku - “no web processes running”

元气小坏坏 提交于 2019-11-29 05:29:54
问题 error H14 happen while deploying to heroku this is my procfile: web: gunicorn -w 4 -b 0.0.0.0:$PORT -k gevent main:app log on heroku: 2017-01-23T10:42:58.904480+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=meetcapstone.herokuapp.com request_id=df88efb5-a81a-4ac0-86dc-4e03d71266bb fwd="81.218.117.137" dyno= connect= service= status=503 bytes= 2017-01-23T10:42:59.009135+00:00 heroku[router]: at=error code=H14 desc="No web processes running"

The target “MSDeployPublish” does not exist in the project

喜欢而已 提交于 2019-11-29 03:08:15
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. Adding the lines below to my .csproj file seems to solve the same error for me: <PropertyGroup> <VisualStudioVersion Condition="'$

Publishing/uploading new DLL to IIS: website goes down whilst uploading

坚强是说给别人听的谎言 提交于 2019-11-29 02:41:48
When uploading a new DLL for a large web application (dll is around 1mb) IIS throws an error because the DLL is 'in-use', meaning the website is down while the DLL is being uploaded. Is there a way to stop this behaviour? Also, although I am using Web Applications, not Web Sites, whenever I upload a new DLL it still takes a while for IIS to restart after a fresh upload. I thought this wait was generally only for websites as they need to be compiled by IIS, not Web Applications? As soon as you make a change such as this you've effectively changed a dependency. The site will need to be

Visual Studio 2010 Web Publish missing a file

陌路散爱 提交于 2019-11-29 02:10:22
问题 I'm finding that when publishing a website from Visual Studio its not uploading one of my files. Its a Razor file with a '.cshtml' extension (its doing the others!) and its part of the project. Any ideas why it would exclude it? 回答1: In Visual Studio, right-click on the file and go to Properties . Under the file's properties, make sure that Build Action is set to Content . Otherwise it won't be published via web deploy. 回答2: In my case I had a couple of config files that weren't being

Best Practices for Code/Web Application Deployment?

亡梦爱人 提交于 2019-11-29 00:01:44
I would love to hear ideas on how to best move code from development server to production server. A list of gotcha's, don't do this list would be helpful. Any tools to help automate the steps of. Make backups of existing code, given these list of files Record the Deployment of these files from dev to production Allow easier rollback if deployment or app fails in any way... I have never worked at a company that had a deployment process, other than a very manual, ftp files from dev to production. What have you done in your companies, departments, etc? Thank you... Yes, I am a coldfusion

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

社会主义新天地 提交于 2019-11-28 23:30:38
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 to the output directory? Including this in "project.json" works for me: ... "publishOptions": {

App_Offline in MSBuild Remote Web Deploy

£可爱£侵袭症+ 提交于 2019-11-28 23:05:26
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 works fine. However, I would like to place an app_offline.htm file (on the remote server) before the

How to simulate 'position:fixed' behavior on Flexbox-aligned sidebar

偶尔善良 提交于 2019-11-28 22:14:51
问题 As it was already answered (How can I have a position: fixed; behaviour for a flexbox sized element?) absolutely/fixed positioned boxes are taken out of the normal flow of Flexbox-aligned elements. But how can I at least simulate position: fixed behavior of, say, width: 300px; height: 100vw element? Here is a demo (http://codepen.io/anon/pen/ZGmmzR) of initial layout with sidebar on the left and content block on the right. I would like nav act like position: fixed element following user's

How can I AutoSave my Visual Studio 2015 files when it loses focus?

二次信任 提交于 2019-11-28 21:23:32
I'm working with CSS, HTML, and JavaScript in my classes, and I've recently started working with Visual Studio 2015. In Notepad++, there's an add-on that allowed me to automatically save all my opened documents as soon as it lost focus. This saved me a lot of time, as I go back and forth frequently between the page I'm working on and the coding for it. I'm hoping there is a similar add-on for Visual Studio 2015, so I can stop forgetting to save before checking my work on its web page! Anyone know of any? You can use the following extension for Visual Commander to auto save files on switching