web-deployment

When and why would I need a jboss-deployment-structure.xml for a Spring application?

ぐ巨炮叔叔 提交于 2019-11-29 22:59:22
I am trying to understand how to use JBoss EAP6 with Spring applications. I have a sample OpenShift application and it contains a jboss-deployment-structure.xml file. I found some documentation about this file, but I am not clear why and when one should use those files with Spring applications. The content is the following: <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0"> <deployment> <dependencies> <module name="com.h2database.h2"/> <module name="org.codehaus.jackson.jackson-core-asl"/> <module name="org.codehaus.jackson.jackson-mapper-asl"/> <module name="org.slf4j"/>

Disable IIS Idle Timeouts in Azure Web Role

亡梦爱人 提交于 2019-11-29 21:30:33
To prevent AppPool recycling every 20 minutes, I'd like to remove IIS AppPool Idle Timeouts when my Azure Web Role starts. My website is a Web Application Project. How do I do this? Edward Brey Create a startup task to disable the idle timeout: In the website project referenced by your web role project, add a file Startup.cmd to the root folder. In the properties for Startup.cmd , set Copy to Output Directory to Copy if newer . Add this line to Startup.cmd : if exist %windir%\system32\inetsrv\appcmd.exe %windir%\system32\inetsrv\appcmd set config -section:applicationPools

Capistrano - How to put files in the shared folder?

匆匆过客 提交于 2019-11-29 20:16:25
I am new to Capistrano and I saw there is shared folder and also option :linked_files . I think shared folder is used to keep files between releases. But my question is, how do files end up being in the shared folder? Also, if I want to symlink another directory to the current directory e.g. static folder at some path, how do I put it at the linked_dirs ? Lastly how to set chmod 755 to linked_files and linked_dirs. Thank you. Folders inside your app are symlinks to folders in the shared directory. If your app writes to log/production.log , it will actually write to ../shared/log/production.log

Deployment-Error: Java-Webproject from netbeans to glassfish 4.0

99封情书 提交于 2019-11-29 16:09:21
Setup I'm using Netbeans 7.4 on Mac OSX Mavericks and Glassfish 4.0 (build 89) on my dedicated server and JDK 1.7 . To use the server locally I setup and ssh-tunnel. The following way: ssh -L 4848:127.0.0.1:4848 -p 6122 glassfish@XXXXXXXXXX This is working perfectly fine, I can access the server via localhost without any problems. To use this server I added a server in Netbeans, see prinscreen: Problem Now I'd like to deploy the project to the server (Right-Click Project -> Deploy) but I get following Error: Building jar: /Users/tzhware7/NetBeansProjects/SkyLogicAddon/dist/SkyLogicAddon.war

pass parameters to batch file in msdeploy runcommand

折月煮酒 提交于 2019-11-29 14:17:34
I am not able to get this to work call "%MSDeployPath%msdeploy" -verb:sync -source:runCommand='backup.bat param1' -dest:auto,computername=10.xx.xx.xx,username=xxx,password=yyy It gives me: Warning: 'backup.bat' is not recognized as an internal or external command, operable program or batch file. Warning: The process 'C:\Windows\system32\cmd.exe' (command line '') exited with code '0x1'. Total changes: 1 (0 added, 0 deleted, 1 updated, 0 parameters changed, 0 bytes copied) If I remove the param1 and hardcode it inside the .bat, it works, so there's no problem with the bat file, in case you

How to Deploy asp.net mvc 4 application having multiple Areas

冷暖自知 提交于 2019-11-29 12:51:21
问题 I followed this article to make the pluggable asp.net mvc4 applicaton But facing problem while deploying the application. In my solution MainProj is the main project, where as all the other projects are in the area folder. Each of the project have its model, view and controller. I have given references of all the sub projects (projects in area folder) in the MainProj . Now when trying to deploy MainProj , Its only publishing the main project with its views (in this case MainProj), the

Using 'git checkout -f' to deploy files from a bare git repo in Gitlab

拜拜、爱过 提交于 2019-11-29 12:31:21
I am in the process of implementing Gitlab at my workplace and transitioning everyone over to it for better code reviews, issue management directly linked to commits, and integration with user stories on Pivotal tracker. My current setup for a test app is as such: Git bare repo with all the code for my PHP based web-app found in: /var/opt/gitlab/git-data/repositories/git/test-app.git Deploy directory is: /var/www/test-app In the Git repo directory, I did the following: export GIT_WORK_TREE=/var/www/test-app git checkout -f master This worked like a charm and all the files are accessible in

MSDeploy runCommand using relative path

此生再无相见时 提交于 2019-11-29 11:49:30
问题 I am trying to run a command as a part of my packaging/deployment process via MSDeploy. In particular, I am trying to create a custom event log by running installutil against one of my DLLs, but I am having trouble with specifying a relative path to the DLL from the deployment directory. To get started, I added the below config to my csproj in order to generate the runCommand provider inside of my Manifest file. Please note the absolute path to the DLL. <PropertyGroup> <!-- Extends the

Is it possible to use multiple ehcache.xml (in different projects, same war)?

六眼飞鱼酱① 提交于 2019-11-29 09:11:53
I have a services project and a web project. I need to have eh-cache in both projects. The idea is that if the service project is updated, it's cache-related changes (like keys and invalidation rules) will also be available, while no changes are made to the web project. Being so independent, the service project can also be used with another projects without them even knowing of eh-cache. At this point, my web project also uses eh-cache for its own purposes. I am not much experienced with eh-cache and I fear that the two projects might clash when deployed together. I also did not find relevant

Automatically encrypt sections of web.config after deploy / publish?

久未见 提交于 2019-11-29 07:36:40
问题 I have two related questions: What is the best way to managing deployment of web projects between environments? I just downloaded the .NET Web Deployment Project and it seems to handle things like replacing certain sections of the web.config to match the environment, which is great. The other thing that I wanted to automate was the encryption of certain sections of the web.config . Is there any way to 'auto-encrypt' the web.config sections after a publish? The second question is where do you