귀하의 git 워크 플로우는 꽤 표준적이고, 당신은 훨씬 간소화하지 않을 것입니다. 모든 커밋을 푸시 할 필요는 없습니다. 작고 커다란 커밋이 많아도 아무 문제가 없습니다.
지금까지 cap deploy
까지 갔는데 왜 매번 설정 및 정리를 실행하고 있습니까? cap deploy
을 실행할 수 없습니까? 매번 cleanup
을 실행해야하는 경우 deploy
의 기본값을 다시 정의 해보십시오. 에 deploy.rb
:
namespace :deploy do
desc <<-DESC
Deploys your project. This calls both `update' and `restart'. Note that \
this will generally only work for applications that have already been deployed \
once. For a "cold" deploy, you'll want to take a look at the `deploy:cold' \
task, which handles the cold start specifically.
DESC
task :default do
update
restart
cleanup # <-- this is added
end
end
당신이 모든 시간을 setup
실행하는 좋은 이유가있는 경우, 당신은뿐만 아니라 재정의 기본 작업에 그것을 추가 할 수 있습니다.