web-deployment

Capistrano and deployment of a website from Github

So, I had what I thought was a fairly simple Capistrano use case: I want to deploy a PHP site from Github. But I'm running into a lot of problems. When I run cap deploy, Capistrano is able to clone the Github repo (the deploy:update_code step), but then in the deploy:finalize_update step it says executing "rm -rf /var/www/sitename.com/r...

Different ASP.NET 4 page contents depending on build type.

Hi All! While working on ASP.NET MVC 2 web site I faced to the following problem. I need to render speacial script on site's master page for Google analytics when building solution for production, but for debug and test builds this script should not be rendered. I've tried to find a way to make it automatically, but was not succeded in ...

Web Site deployment in IIS

Hi, I am working on a web application which has around 40 pages. We have separate business and DB layer. But there are still few simple business logic in code behind (CS) page of each aspx file. So when there is any change in that code behind, it lead to complete re-deployment of whole project. Is there any option where I could re-deplo...

Problem publishing a website with Visual Studio 2010

This is hard to describe. I have a web project that works under Visual Studio 2008. I have since upgraded the project to 2010 and all works well on the Dev machine.. I can build the site and run it quite happily on IIS on the Dev PC. If I publish this site to a remote Web Server, then all the pages that do a postback to themselves dont ...

Deploy Java Web Applet with Third Party Dependencies

I have made a Java Applet that depends on some third party libriaries as well as a DLL that is called via JNI. These will obviously not be installed on clients computers. Is there anyway to package these third party libriaries and external DLLs within my Applet's JAR so that it can be run by any client with a base Java install? ...

How do I deploy my local DotNetNuke site to my host?

Ok, so this may seem an elementary question. Maybe it is. But for the life of me I don't know the answer. I'm looking for the simple answer(s). I've attempted both of the following: 1) I have a site I've created locally. When I deploy to my host (XCopy of site files + restore of a .bak SQL Server backup file), I get all kinds of errors...

PHP script not decoding URL parameters in $_REQUEST[] (%20 values present) after deploying to 5.2.4

I have developed a PHP script that uses $_REQUEST[] superglobal. A typical client request might consist of: http://host.name/socnet/add.php?shortid=1&author=NewUser2&comment=Dad%20dad%20dad This URL is rewritten by Apache in my production environment to an equivalent https:// URL according to the following rewrite rule: Rew...

Problems deploying WAR file from Netbeans to Tomcat

I'm trying to configure build.xml files for build forge, but it seems like I am having trouble with the libraries required for the java servlet pages. I am actually trying to use OWASP's AntiSamy library but I keep getting a Policy Exception followed by a file not found org.owasp.validator.html.PolicyException: java.io.FileNotFoundE...

Advanced ASP.NET MVC routing scenario

Hello, I have an ASP.NET MVC app with the following deployment requirements: The URL structure must be something like: http://server/app/[enterprise]/[communinty]/{controller}/{action}/... What I think I want to be able to do is intercept the URL before the MVC route handler gets its hands on it, remove the [enterprise]/[community] p...

VirtualPath in AspNetCompiler MSBuild Task - does it have to be equal to the final deployed Virtual Path?

This is VS 2008 and .Net 3.5. I use a custom deployment project script which is similar to the publish right-click menu, but which I have customised to do file renaming and various other bits and pieces. It works really well and has drastically simplified the release procedure. I was made aware of an issue on one of our live sites thi...

Logging to server log on deploying a war file

Hi, I am using Jboss. I need to log "War file deployed" to server log when a war file is copied to jboss/server/default/log directory.( this's not related to jboss but still ... ) I am aware of one way to do is, i.e to have a servlet and overload the init methods, to log onto server log. The requirement is -> as soon as a war file is ...

Best practice to merge config files and deploy them

On a regular base, we do some changes (modify or add) on our web application config file. Every time someone adds a new config line, he has to tell the team that he was adding a new config part to the global config. We have a scaffolding config under version control. Is there a smart way to merge the new config template with your existin...

asp.net mvc 2 custom service account

I'm trying to deploy ASP.NET MVC 2 Silverlight application with custom service account. I did the following: 1) Domain user account (myAppUser) was created. Domain controller is different from the web server to which I'm trying to deploy my app. 2) On the web server I run the following command: aspnet_iisreg -ga myDomain\myAppUser w...

Deploy PHP web system to multiple locations

I am developing (solo web developer) a rather large web based system which needs to run at various different locations. Unfortunately, due to some clients having dialup, we have had to do this and not have a central server for them all. Each client is part of our VPN, and those on dialup/ISDN get dialed on demand from our Cisco router. A...

J2EE test deployment conflict resolution how to?

Just stuck with this problem Developer A changed file aaa.jsp in his svn branch and then our admin deploy that version to the test server. Test starts. Lets say 3 days later, developer B changed the file aaa.jsp in her branch and then our admin deploy that version to the test server. Test starts. Right now Developer A's version has be...

Make Web.config transformations working locally

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? -Die...

Using ClickOnce (or similar) for ASP.NET application

I'm looking for a way to providing users (administrators) of a web application to automatically (meaning it's opt-in to update, but the installation should be automatic when started) update said web application when new versions are released. The reason why I want an automatic approach is that I want the users to be able to update the ...

Web.Config transformation does not wok

Hello all, Here is the problem : I have a brand new web application in VS 2010, Framework 3.5 I have a very simple web.config with the connectionStrings node : <connectionStrings> The Web.Release.Config is like this : <?xml version="1.0" encoding="utf-8"?> Then i create a deployment package using V...

Continuous Deployment using Visual Studio 2010

I have to deploy a website asap and then incrementally keep on adding some features, fixes. In Visual Studio 2008, I used to transfer/copy website where I could see in the dialog which file on my system is different from the server and deploy only that particular change. But that dialog seems to have been taken down in Visual Studio 20...

Connection strings not replaced using Web Deploy

A deployment package that is generated by our CI build correctly: (a) prompts for our two connection strings during interactive deployment using IIS Manager. (b) includes the two connection strings in the generated parameter file to be used with command-line deployment. (c) creates the proper placeholder strings in the Web.config. Whe...