/usr/bin/codesign failed with exit code 1

Update: The Technical Note in my original answer is now deprecated. Apple posted a collection of code signing problems (and some solutions) in a new document: Technical Note TN2407 Code Signing Troubleshooting Index Check the CODE_SIGN_IDENTITY property in your build settings. Is your provisioning profile selected there? You also need to enter a valid bundle … Read more

What’s the difference between Red/Black deployment and Blue/Green Deployment?

Blue-green deployment Classic deployment technique described in the Continuous Delivery book by Jez Humble and David Farley: The idea is to have two identical versions of your production environment, which we’ll call blue and green… Users of the system are routed to the green environment, which is the currently designated production. We want to release … Read more

Git command to checkout any branch and overwrite local changes

You could follow a solution similar to “How do I force “git pull” to overwrite local files?”: git fetch –all git reset –hard origin/abranch git checkout abranch That would involve only one fetch. With Git 2.23+, git checkout is replaced here with git switch (presented here) (still experimental). git switch -f $branch (with -f being … Read more

Web deployment task failed. Could not connect…server did not respond

I had the same problem with Web Deploy 3.5 when I installed it with “Web Platform Installer 5.0” When I tried to publish from Visual Studio I got this error: ————————— Microsoft Visual Studio ————————— Could not connect to the remote computer (“10.0.3.102”) using the specified process (“Web Management Service”) because the server did not … Read more

Staging instance on Heroku

Your interface to Heroku is essentially a Git branch. The Heroku gem does some work through their API, but within your Git repository, it’s just a new remote branch. heroku create yourapp # production git br -D heroku # delete the default branch heroku create staging-yourapp # staging git br -D heroku # delete the … Read more

Slow initial server startup when using Phusion Passenger and Rails

What’s happening is that your Application and/or ApplicationSpawners are shutting down due to time-out. To process your new request, Passenger has to startup a new copy of your application, which can take several seconds, even on a fast machine. To fix the issue, there are a few Apache configuration options you can use to keep … Read more

How to deploy Node.js application with deep node_modules structure on Windows?

just to add to this… another thing that helped me was listing out all installed modules with npm ls. which will give you a tree of modules and versions… from there it’s pretty easy to identify which ones are duplicates… npm dedupe didn’t do anything for me. I’m not sure if that’s a bug or … Read more