Fix the iOS code signing issue using Jenkins

This week I configure the Jenkins to work with Mac and try to build iOS applications. Unfortunately, I got the code signing issues, either I use Xcode plugin or Xcode command line tool. 

The core reason is Jenkins is running as daemon mode in Mac, just assume it is a different user – "Jenkins", so it will not have access to the keychain or provision profile as you log in using your credentials, which cause the code signing issue.

[Read more…]

Restart Unicorn with Capistrano

The following tasks is what I use for starting  , stopping, restarting and my unicorn server:

 



desc "Start unicorn"
task :start, :except => { :no_release => true } do
  run "cd #{current_path} ; bundle exec unicorn_rails -c config/unicorn.rb -D -E production"
end

desc "Stop unicorn"
task :stop, :except => { :no_release => true } do
  run "kill -s QUIT `cat #{shared_path}/pids/unicorn.pid`"
end

desc "Zero-downtime restart of Unicorn"

task :restart, :except => { :no_release => true } do

run "kill -s USR2 `cat #{shared_path}/pids/unicorn.pid`"

end