web-deployment

Can some code run when we first deploy a WAR file?

早过忘川 提交于 2019-12-03 14:14:12
Is there any method or API that I can use so that whenever I deploy a new WAR file, a part of code should execute or perhaps when Tomcat starts, the respective servlet should start or run some code continuously. Reviving an old question since the only answer doesn't show any example. In order to run a custom piece of code whenever a web application WAR is deployed/undeployed or Tomcat is started/stopped, you need to: Implement the ServletContextListener listener and its methods contextInitialized() and contextDestroyed() . Let Tomcat know about your implementation. According to the

Git sparse checkout for simple web deployment

。_饼干妹妹 提交于 2019-12-03 13:50:17
I have a directory structure like this: ../dir1/dev/project1/... /project2/... /project3/... /production/ I have dev (and all its sub directories) checked into git (and github). All is working well. I would like to use github to deploy only project2 by checking out (or pulling, or whatever) into my production directory. (And specifically, I want to check out by tag.) So this would result in ../dir1/production/project2 I'm not a git expert but have read a bunch online and it seems that a 'sparse checkout' is what I'm after. I've tried various combinations of the instructions here and here and

Auto Deploy using Continuous Integration in TFS 2012

痞子三分冷 提交于 2019-12-03 11:40:57
问题 I have setup continuous integration for a WCF project and want to use the MSBuild Arguments to automatically deploy the application to a remote server but it is not deploying. When running a new Build all the Tests pass and all the projects build but the website is not being deployed. Also, I am getting no errors back from the build to say anything has gone wrong. I have opened up port 8172 on the remote server to ensure connections can be made to IIS and have even disabled the firewall. In

VS2015 pubxml: how to exclude or eliminate the <PublishDatabaseSettings> section

故事扮演 提交于 2019-12-03 11:32:36
I need to exclude database related settings from the Web Deploy publishing. I tried to delete the section in the pubxml file, but it comes back when I create a deployment package. Is there any way way to exclude database related settings from the Web Deploy publishing? Figured out a way: Externalize the config with configsource Change your web.config to include connection strings as an external file. <connectionStrings configSource="web.connectionstrings.config"/> Then add a new file web.connectionstrings.config and it should be in exactly this format (by that I mean no higher level nodes

How to create a setup file to install MVC .net web application?

旧街凉风 提交于 2019-12-03 11:05:00
I have MVC2.0 web application and I need to make an exe installer to deploy the application and the DB on the customer's server. Is there a tool in VS2010 to do this or do I have to use a 3rd party tool? You can create deployment package, bin deploy or simply use publish option to drop files to web server. Here are some useful links: Bin Deployment VS 2010 Web Deployment Package, One click deploy Automating Deployment with Microsoft Web Deploy 来源: https://stackoverflow.com/questions/5323631/how-to-create-a-setup-file-to-install-mvc-net-web-application

how to add publishing profile to a new sln in vs2012?

橙三吉。 提交于 2019-12-03 10:47:16
I have read the publishing profiles have replaced WDP but I cannot find decent tutorial how to add and modify pubxml file to my project any help will be appreciated When you right-click a project and select Publish , you get the Publish Web wizard. Using this to create a profile (you don't have to actually publish in order to create a profile) creates the .pubxml, and on the first step of the wizard you can use the Manage Profiles button to rename or delete profiles. Profiles are created in a PublishProfiles folder under Properties. See http://msdn.microsoft.com/en-us/library/ff398069.aspx In

The username you provided is not allowed to use the text-based Tomcat Manager (error 403) when deploying on remote Tomcat8 using Jenkins

此生再无相见时 提交于 2019-12-03 10:32:48
I am trying to deploy a WAR on the remote Tomcat (Remote Machine) using Jenkins deploy to container Plugin. I have done the following configuration in tomcat-users.xml <user username="deployer" password="deployer" roles="manager-gui,manager-script,admin" /> I have setup the proper username password and port in Jenkins deployer container plugin. The setup is working fine for the local Tomcat. But for remote Tomcat I keep getting the following error: Caused by: org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: The username you provided is not allowed to use the text-based

Deploying react project on Azure

心不动则不痛 提交于 2019-12-03 07:48:05
问题 I want to deploy my react project on azure cloud. I already deployed it on heroku and there it was very easy to deploy. I just had to do git push heroku master to deploy it on heroku. But I am clueless on how to do it on azure. So I have a bulid directory in my project which gets generated everytime I run gulp command. It has all the build files. Can anyone please guide me on how to proceed to azure? This is my project structure 回答1: There are many options to deploy your app to azure websites

Can I deploy a ClickOnce application via CD, and update via Web?

给你一囗甜甜゛ 提交于 2019-12-03 07:03:42
We have a vendor application that we extend and deploy via ClickOnce. The vendor also provides a 'Deployment Manager' which packages the app and any extensions into a ClickOnce deployment that we publish to a web server. I mention this detail so that it's understood we don't really have great control over changing the deployment process. So, we publish the application to our web server. That works fine, and updates work correctly. On loading the application, it will prompt the user if they want to update the application. Several of our clients have asked for an 'MSI installer'. Their users

How to deploy a Eclipse Java Web Dynamic Project on Amazon EC2?

梦想的初衷 提交于 2019-12-03 05:11:42
问题 I'm trying to create a web project that is able to communicate with Amazon RDS. I know how to make a localhost project connect to a RDS with JDBC. However, the problem is that I never tried to deploy my project (so that, for example someone can type somePage.com , and go to my webpage). I have an Amazon EC2 instance , and I've already written a simple hello world jsp page. I am able to compile it and run the Eclipse Web Dynamic Project using the installed Apache Tomcat Server , and then