Comments (3)
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.
I have tried this solution without any success.
Is there an other way?
from capistrano-git-submodule-strategy.
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)
- Will this over-ride existing strategy? HOT 2
- Remove .git/objects/info/alternates after clone
- unknown option `dissociate' HOT 11
- Cache submodules
- update mirroring
- Adopt to new capistrano plugin system HOT 6
- LoadError: cannot load such file -- capistrano/git-submodule-strategy HOT 9
- Broken with Capistrano 3.7 HOT 1
- Failing to authenticate correctly with git. Capistrano 3.40, git 1.9.1 HOT 1
- double-checking on git:release not working quite right. HOT 5
- Git Submodule Sync should be called before Update HOT 2
- git_keep_meta is undocumented HOT 9
- Duplicated commands caused by requiring 'capistrano/git' HOT 1
- It's not ignoring the folders defined in the .gitattributes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capistrano-git-submodule-strategy.