deployment

Deploying an application without undeploying previous one and with no downtime?

≡放荡痞女 提交于 2019-12-12 10:52:50
问题 I use Glassfish Java, and JSP over MySQL for my web applications. Many online people uses this web application and that web-site should not be down. When I want to deploy a new war file, I should undeploy and deploy the new one for my application at server. My question is that; Is there any technology that doesn't need to undeploy my application and just change the appropriate classes so no need to redoploy it again? 回答1: There are java technologies that would allow you to replace classes on

How to deploy a grails app with a different context path

倾然丶 夕夏残阳落幕 提交于 2019-12-12 10:42:00
问题 Where in the grails files can I define a different context path for a grails app to run on Tomcat ? (For instance, the project is called MyApplication , but I want to reference it as /myapp ) Thanks 回答1: If your deploying to production the easiest way is to just rename the war file to myapp.war. You can also add something like the following to your application.properties to ajust the path you go to in order to access your application when using grails run-app app.context=/myapp 来源: https:/

How to distribute my Java program so that it is runnable by double-clicking a single file?

心已入冬 提交于 2019-12-12 10:33:31
问题 I have a Java rich client desktop app. that I want to distribute on some computers at work, but I've never done something like this before. People aren't too computer-savy at my workplace and since it is a student job, I won't be there for much longer and I'd like it if I could make my program easy to run by making it runnable when people double-click on it. I also don't want to have to manually install a JRE to have it run. Basically, what I'd like to know is how to make my java application

ClickOnce is displaying the '.application' file as XML

本秂侑毒 提交于 2019-12-12 10:33:26
问题 I created a ClickOnce deployment of my test application, and I am trying to run it on my Windows XP SP2 test box. When I click on the install button that Visual Studio 2008 creates, all I get is the manifest file displayed in my browser and it doesn't spawn the install. If I run the install against an Internet Explorer 7 test box, everything works OK. How can I fix this problem? 回答1: The first issue in the MSDN article Troubleshooting Specific Errors in ClickOnce Deployments addresses your

How to manage deployment configs(yaml files) for kubernetes service deployment

你。 提交于 2019-12-12 09:55:58
问题 Secondly , For deploying container images to kubernetes , we generally made deployment config(yaml files) .. Now, these may different for staging and development environments . and with some new feature there may come some system environment variable , which needs to be present in yaml . My question here is . 1. How yaml are managed , for example , manual efforts required if these is some change in yaml . 2. How it can be made automated . 回答1: use helm, k8s package manager. helm will let you

Can Google Cloud Build be triggered by new Docker image in Container Registry?

[亡魂溺海] 提交于 2019-12-12 09:49:54
问题 I'm setting up a CI/CD using Google's cloud tools, and was expecting to have a trigger condition "when new image is uploaded to Container Registry". The use case is separating deployment from source (repo). Source would push Docker images and deployment would deploy them to a test stage. But Cloud Build only provides me a trigger choice between three source repos. link What would you use for test, QA and production deployment of Docker images, in a GKE context? 回答1: Meanwhile, there is a

Requested value 'VS2015' was not found. - Azure powershell

烂漫一生 提交于 2019-12-12 08:53:18
问题 I am trying to get my slot info through azure powershell. To retrieve the info i used Get-AzureWebsite -Name mywebsite -Slot staging but azure powershell throws the below error: Get-AzureWebsite : Requested value 'VS2015' was not found. At line:1 char:1 + Get-AzureWebsite -Name mywebsite -Slot staging + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Get-AzureWebsite], ArgumentException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Websites

Syncing local and remote directories using rsync+ssh+public key as a user different to the ssh key owner

杀马特。学长 韩版系。学妹 提交于 2019-12-12 08:45:19
问题 The goal is to sync local and remote folders over ssh. My current user is user1 , and I have a password-less access setup over ssh to a server server1 . I want to sync local folder with a folder on server1 by means of rsync utility. Normally I would run: rsync -rtvz /path/to/local/folder server1:/path/to/remote/folder ssh access works as expected, rsync is able to connect over ssh , but it returns "Permission denied" error because on server1 the folder /path/to/remote/folder is owned by user2

Git: application configuration and different environments

拜拜、爱过 提交于 2019-12-12 08:25:44
问题 We use git for most of the web applications we build in our shop, and though the applications themselves use a variety of technologies (PHP, Rails, etc), we generally have a staging and production server for each site. Typically, these servers have different sets of database credentials as well as different environment-based configuration settings (e.g. caching). Our workflow generally involves maintaining two git branches per project: master, which reflects the production server, and staging

Hosting Node app on my machine

♀尐吖头ヾ 提交于 2019-12-12 08:03:00
问题 So I've got a node app that I can access via localhost:someportnumber. How do I expose this app publicly (i.e. to the rest of the interwebz, not just my local network) using only my machine, and not some sort of hosting service. Machine is a macbook pro, not sure it matters. Note - this is purely for understanding, I'm not looking to permanently host a toy webapp on my laptop. Here's my confusion - my node.js application IS A WEBSERVER, why do I need another server (i.e. one provided by