Git push to live server

Yes you can push directly to your webserver, but I wouldn’t recommend it since you should only push to repositories cloned with the –bare argument. I’d utilize the Git hook system to let the main repository automatically update the repo on the web server. Check out the post-update hook in: http://git-scm.com/docs/githooks This script could in … Read more

Make MSDeploy (Visual Studio) not delete App_Data folder but delete everything else

It can be done when you invoke msdeploy manually – just add the following parameter: -skip:Directory=\\App_Data See Web Deploy Operation Settings. The path is a regular expression, so it is quite flexible. If you deploy using the VS-generated ProjectName.deploy.cmd script, you can also pass this parameter in the _MsDeployAdditionalFlags environment variable (when running that script). … Read more

Best practices for deploying Java webapps with minimal downtime?

Update: Since this answer was first written, a better way to deploy war files to tomcat with zero downtime has emerged. In recent versions of tomcat you can include version numbers in your war filenames. So for example, you can deploy the files ROOT##001.war and ROOT##002.war to the same context simultaneously. Everything after the ## … Read more

Deny access to .svn folders on Apache

The best option is to use Apache configuration. Using htaccess or global configuration depends mainly on if you control your server. If you do, you can use something like <DirectoryMatch .*\.svn/.*> Deny From All </DirectoryMatch> If you don’t, you can do something similar in .htaccess files with FilesMatch

How can I deploy (create .ipa) iphone app using ‘cordova build ios –release’?

I found this command which worked for me: cordova build ios –device cd platforms/ios/build/device /usr/bin/xcrun -sdk iphoneos PackageApplication “$(pwd)/$PROJECT_NAME.app” -o “$(pwd)/$PROJECT_NAME.ipa” Source: http://www.splinter.com.au/xcode-4-command-line-builds-of-iphone-apps/ I did run @MD. Mohiuddin Ahmed’s Ruby script first, which would have changed my xcodeproj file. I’m not sure if that was necessary but I don’t think so. Update for XCode 8: … Read more