Giter Site home page Giter Site logo

Error - fatal: destination path '/var/sites/s/staging/public_html/releases/xxxxxx' already exists and is not an empty directory. about capistrano-git-submodule-strategy HOT 3 CLOSED

ekho avatar ekho commented on June 21, 2024
Error - fatal: destination path '/var/sites/s/staging/public_html/releases/xxxxxx' already exists and is not an empty directory.

from capistrano-git-submodule-strategy.

Comments (3)

henscu avatar henscu commented on June 21, 2024

I found a comment about this on StackOverflow:

http://stackoverflow.com/a/24690474/3403466

It suggests this solution:

NOTE: you may have problem with the repo folder if you already tried with the default git strategy. >Simply go to the deploy directory on server and remove it and then run cap deploy again to fix.

When I have tried it I will report back...

from capistrano-git-submodule-strategy.

mischka avatar mischka commented on June 21, 2024

I have tried this solution without any success.
Is there an other way?

from capistrano-git-submodule-strategy.

henscu avatar henscu commented on June 21, 2024

Mischka, thanks for checking this out. I have not checked it yet as I got an alternative/simpler solution to work. I am using Capistrano Version: 3.2.1 (Rake Version: 10.3.2).

The alternative solution I found is to override the standard Capistrano Git task as described here (I'm not a Ruby or Git expert, just repeating what I read...):

http://www.developerblogger.com/73_22836153/

It uses the code described here:

https://gist.github.com/corny/7459729

The developerblogger link above suggests putting the code in lib/capistrano/tasks/git.cap, but in this comment Derek Tia (dtia) says just to add the code to deploy.rb as is:

https://gist.github.com/corny/7459729#comment-996217

So I just added the code to deploy.rb and it works for me.

Please let me know if it works for you as well and what version of Capistrano you are using.

from capistrano-git-submodule-strategy.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.