Comments (9)
I don't understand this error. Was there more in the output?
So, to get this straight: the remote directory was created, git repo was inited in it, but the post-receive hook wasn't copied to the server?
Which version of Thor do you have installed? gem list thor
from git-deploy.
Here's the complete sequence:
git deploy setup -r production -s false [1s]
[production] $ chmod g+ws /home/deployer/project && \
cd /home/deployer/project && \
git init --shared && \
git config --bool receive.denyNonFastForwards false && \
git config receive.denyCurrentBranch ignore
Reinitialized existing shared Git repository in /home/deployer/project/.git/
git-deploy hooks requires at least 0 argument: "git-deploy hooks".
I have thor version 0.15.2. I thought this might have been a zsh issue, but the same thing happens on bash.
from git-deploy.
Thanks. Seems like it may be a Thor issue. Can you try uninstalling Thor and installing the previous version:
$ gem uninstall thor -axI
$ gem install thor -v '~> 0.14.6'
from git-deploy.
Good call. It was indeed a thor compatibility issue. I added an explicit entry in my gemfile like so
gem 'thor', '~> 0.14.6'
gem 'git-deploy'
And it worked as advertised! Thanks for the super fast responses :)
from git-deploy.
I'm seeing this issue in another project (Spree). Is it a known issue in Thor?
from git-deploy.
This appears to be a regression in Thor 0.15. It's possible that it was fixed by rails/thor@de6b9a4, which was released in version 0.15.3.
Can you please check whether that fixes the problem. If not, please open an issue.
/cc @wycats @josevalim
from git-deploy.
Got the same error with thor 0.15.4
It works when I install thor 0.14.6
from git-deploy.
@sferik what's the story here?
from git-deploy.
@wycats Not sure. It would be great to have a failing test case. The bug is now being tracked at rails/thor#234, so I believe this issue can be safely closed. This appears to be a bug in thor
, not specific to git-deply
.
from git-deploy.
Related Issues (20)
- $PATH not detected HOT 2
- Alternate checkout path HOT 3
- Use different environments
- differences between git-deploy/git-deploy project HOT 1
- Old net-ssh version in gemspec
- Feature request - custom directory for deploy scripts
- delpoy without commit HOT 1
- More detailed docs?
- Running without an argument will destoy origin/master HOT 4
- git-deploy fails on Windows HOT 2
- Net::SSH::AuthenticationFailed HOT 3
- How to deploy on any remote branch other than master HOT 1
- git deploy download?
- ruby 2.4.1 is not supported HOT 2
- How to migrate database down on rollback? HOT 1
- Can't git deploy setup -r "production" (MacOS Sierra) HOT 2
- multi-servers solution?
- Problems when setting up deployment HOT 1
- Rails 6 support in default deploy scripts HOT 1
- Excluding files on deployment ? HOT 1
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 git-deploy.