Comments (6)
I agree, this has been a feature I've bolted onto capistrano in the app templates and tools I've created over the years.
I don't have much bandwidth to build this into capistrano right now, but I'd be willing to review a PR, if you are interested in contributing.
from capistrano.
That's weird - I think it might be best if you make a new issue and then we can go from there, just to keep things clear.
fwiw we've been using our original code for a while and this version without issue (I was literally deploying some stuff yesterday) - I'll get my little test server spinned back up and grab some more info out for us to compare
from capistrano.
I've opened #2161
from capistrano.
Cool, yup I'm happy to have a crack at it - I'll try to do that over the next week or so
from capistrano.
@mattbrictson have opened #2155 which should hopefully be pretty close to done, but either way needs some review for me to continue 🙂
from capistrano.
@G-Rath @mattbrictson I've just pulled in 3.19.0
. When I deploy (to staging in this case), the deploy hangs in set_current_revision_time
. It never returns.
This is a git deploy. Here is the debug trace of just the deploy:set_current_revision_time
task.
> cap staging deploy:set_current_revision_time -t
** Invoke staging (first_time)
** Execute staging
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke rbenv:validate (first_time)
** Invoke rbenv:install (first_time)
** Execute rbenv:install
** Invoke rbenv:install_rbenv (first_time)
** Execute rbenv:install_rbenv
** Invoke rbenv:install_ruby_build (first_time)
** Execute rbenv:install_ruby_build
** Invoke rbenv:install_ruby (first_time)
** Execute rbenv:install_ruby
** Invoke rbenv:install_bundler (first_time)
** Invoke rbenv:map_bins (first_time)
** Execute rbenv:map_bins
** Execute rbenv:install_bundler
** Execute rbenv:validate
** Invoke rbenv:map_bins
** Invoke bundler:map_bins (first_time)
** Execute bundler:map_bins
** Invoke deploy:set_rails_env (first_time)
** Execute deploy:set_rails_env
** Invoke deploy:set_linked_dirs (first_time)
** Execute deploy:set_linked_dirs
** Invoke deploy:set_rails_env
** Invoke deploy:set_current_revision_time (first_time)
** Invoke git:set_current_revision_time (first_time)
** Execute git:set_current_revision_time
When I run git log -1 --pretty=format:%ct master
in the repo
directory, it works fine, and shows the output with the screen cleared
1718981228
(END)
Q
is required to quit the display.
Here is the process list via ps aux
myuser+ 163161 0.0 0.0 113420 1752 pts/24 Ss+ 17:53 0:00 bash -c cd /home/REPOPATH/repo && ( ENVIRONMENT VARIABLES ; /usr/bin/env git log -1 --pretty=format:"%ct" master )
myuser+ 163195 0.0 0.0 113420 772 pts/24 S+ 17:53 0:00 bash -c cd /home/REPOPATH/repo && ( ENVIRONMENT VARIABLES ; /usr/bin/env git log -1 --pretty=format:"%ct" master )
myuser+ 163196 0.0 0.0 116888 1512 pts/24 S+ 17:53 0:00 git log -1 --pretty=format:%ct master
from capistrano.
Related Issues (20)
- When I was running this "bundle exec cap demo deploy -t latest" command it showing error, I was try to deploy with Jenkins pipeline and my public ssh key add deploy server ERROR: SSHKit::Runner::ExecuteError: HOT 1
- Git CVE-2022-24765 and `safe.directory` Exceptions with Multiple Users HOT 6
- Documentation references the deprecated :scm variable HOT 2
- rsync instead of scp? HOT 2
- Default scm branch to "main" HOT 1
- If there is no way deploy with capistrano? [GitHub action] HOT 2
- Connection stale when running a command that takes ~4 hours to finish HOT 1
- Capistrano deletes last working deployment if recovering from too many failures HOT 1
- Deployment fail on precompile -> compilation step. Possible memory leak? HOT 3
- Deploying a new app to a staging server won't start/restart puma/systemd HOT 1
- Switch from CircleCI to GitHub Actions
- Danger CI job doesn't run on PRs from forks HOT 1
- Security issue reported to [email protected]
- Docs bug HOT 2
- Deployment fails with Ruby 3.3.0-rc1 HOT 5
- ~/.rvm/gems/ruby-3.3.0/gems/net-ssh-7.2.1/lib/net/ssh/known_hosts.rb:3: warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0. Add base64 to your Gemfile or gemspec. Also contact author of net-ssh-7.2.1 to add base64 into its gemspec. HOT 1
- solr is not restart or start on rollback HOT 1
- Feature Request: git verify-tag
- `set_current_revision_time` hangs in 3.19.0 HOT 11
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.