on GitHub , I have 2 branches 'master' and 'develop', and I am using
multistage deployment
no issue when deploying the 'develop' branch ( staging deployment )
set :domain, "staging.mydomain.com"
set :rails_env, "staging"
set :branch, "develop"
set :deploy_via, :remote_cache
set :deploy_to, "/var/www/vhosts/mydomain/rails/#{application}/
staging"
set :copy_exclude, ".git/*"
But when I try to do the same with the 'master' branch ( production
deployment)
set :domain, "seveacademy.com"
set :rails_env, "production"
set :branch, "master"
set :deploy_via, :remote_cache
set :deploy_to, "/var/www/vhosts/mydomain/rails/#{application}/
production"
set :copy_exclude, ".git/*"
I get an error each time I try to update ... ( initial deployment
after setup is fine)
** [mydomain.com :: err] fatal: unable to create '.git/index.lock':
File exists
** [mydomain.com :: err] fatal: Could not reset index file to
revision '719d3d1ea59e0c157205808410aeddab2aa8d00b'.
so I resolved to change the deploy_via for production, and using a
copy (which takes a long time... but it's production..)
set :deploy_via, :copy
set :copy_cache, true
set :copy_exclude, ".git/*"
when a look at the console on my localhost , I can see that the sftp
upload is performed from the localhost and not from the GitHub repo...
is it the standard behavior ? or did I miss any deployment parameter ?
tahnks for you help
erwin
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en