xuwupeng2000 / capistrano-scm-gitcopy

Capsitrano 3 copy scm - tar your git branch and deploy to your server
MIT License
81 stars 31 forks source link

Installation not work / LoadError: cannot load such file -- capistrano/gitcopy.rb #37

Closed Bubelbub closed 8 years ago

Bubelbub commented 8 years ago

Hey guys,

I get this error.

LoadError: cannot load such file -- capistrano/gitcopy.rb

If I follow the installation process.

I added gem 'capistrano-scm-gitcopy' in the GemFile and replaced the :scm string with set :scm, :gitcopy. But then I get this error.

If I add this bad `to theCapfile` it seems to work but then I get this error. I think this is because I'm using windows?

** Execute gitcopy:wrapper
INFO [2f6bed48] Running /usr/bin/env mkdir -p /tmp/app/ as Username@localhost
DEBUG [2f6bed48] Command: ( export SYMFONY_ENV="prod" ; /usr/bin/env mkdir -p /tmp/app/ )
cap aborted!
Errno::ENOENT: No such file or directory - ( export SYMFONY_ENV="prod" ; /usr/bin/env mkdir -p /tmp/app/ )
C:/Ruby22-x64/lib/ruby/2.2.0/open3.rb:193:in `spawn'
C:/Ruby22-x64/lib/ruby/2.2.0/open3.rb:193:in `popen_run'
C:/Ruby22-x64/lib/ruby/2.2.0/open3.rb:93:in `popen3'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sshkit-1.9.0/lib/sshkit/backends/local.rb:41:in `execute_command'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sshkit-1.9.0/lib/sshkit/backends/abstract.rb:137:in `block in create_command_and_execute'

Thanks in Advance for any ideas!

Bubelbub commented 8 years ago

Also via copy it's not working for now, @xuwupeng2000. But in the meanwhile I created a private repository on Bitbucket and I'm working with that.

xuwupeng2000 commented 8 years ago

Hi

You can reopen it again. I does not throw this error to me on both Mac and Linux. You can open a new issue and give me some details

Thank you

On 1/04/2016, at 12:02 am, Bubelbub notifications@github.com wrote:

Also via copy it's not working for now, @xuwupeng2000 https://github.com/xuwupeng2000. But in the meanwhile I created a private repository on Bitbucket and I'm working with that.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/xuwupeng2000/capistrano-scm-gitcopy/issues/37#issuecomment-203878823

xuwupeng2000 commented 8 years ago

Finally, DO NOT ADD require 'capistrano/gitcopy' to Capfile because capistrano/setup already loads the scm module with the :scm value you specified.

Does that solve your issue BTW ?

Thanks

On 1/04/2016, at 12:02 am, Bubelbub notifications@github.com wrote:

Also via copy it's not working for now, @xuwupeng2000 https://github.com/xuwupeng2000. But in the meanwhile I created a private repository on Bitbucket and I'm working with that.

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/xuwupeng2000/capistrano-scm-gitcopy/issues/37#issuecomment-203878823