Deployment using Capistrano + Gitlab using via: remote_cache

377 views
Skip to first unread message

Arihant Godha

unread,
Apr 29, 2014, 3:45:22 AM4/29/14
to capis...@googlegroups.com

I am using capistrano for the deployment of an PHP web application and we are having an internal gitlab server which is not accessible outside the network. I am trying to deploy using remote_cache as it is taking to much time if use it for copy. I have already checked This and This but not getting the desired result. I am trying the below code.

set :default_stage, "staging"
ssh_options[:forward_agent] = true
server "servername", :app, :web, :db, :primary => true
set :application, "appname"
set :scm, :git
set :repository, '.'
set :local_repository, "file://."
set :branch, "master"
default_run_options[:pty] = true
set :keep_releases, 2
set :user, 'username'
set :deploy_to, "/home/domain/public_html/test"    
set :copy_cache, true
set :deploy_via, :remote_cache
set :copy_strategy, :export
set :use_sudo, false
set :copy_exclude, [".git", ".DS_Store", ".gitignore", ".gitmodules", "Capfile", "config/deploy.rb"]
What path to use for repository and local repository. Any suggestions how can I achieve this ?
Versions:
  • Ruby - ruby 2.0.0p247
  • Capistrano - (2.15.5, 2.14.2)
  • Rake / Rails / etc - Rails 4.1.0
Platform:
  • Working on.... local
  • Deploying to... Server
Logs:
  • Please past logs (as completely as possible to a 3rd party pasting service such as pastie.org)
Files:
  • Capfile
  • deploy.rb
  • Stage files (production.rb, staging.rb)

Lee Hambley

unread,
Apr 29, 2014, 4:01:55 AM4/29/14
to capistrano

I am using capistrano for the deployment of an PHP web application and we are having an internal gitlab server which is not accessible outside the network.

​Then you will have to use the `copy` strategy.​

--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/1c170d39-4e8c-405e-aa2d-2f65e6cebdbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arihant Godha

unread,
Apr 29, 2014, 6:16:26 AM4/29/14
to capis...@googlegroups.com
@Lee Hambley.  The copy strategy takes too long to upload and Is there a way where I can use the my local machine as the git repo?

Lee Hambley

unread,
Apr 29, 2014, 7:41:59 AM4/29/14
to capistrano
@Lee Hambley.  The copy strategy takes too long to upload and Is there a way where I can use the my local machine as the git repo?

​Not without an inordinate amount of SSH wizardry to remotely reverse mount your local copy on the server as an ssh filesystem.​

Reply all
Reply to author
Forward
0 new messages