Code Monkey home page Code Monkey logo

Comments (6)

mattbrictson avatar mattbrictson commented on September 26, 2024 1

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.

G-Rath avatar G-Rath commented on September 26, 2024 1

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.

digitalmoksha avatar digitalmoksha commented on September 26, 2024 1

I've opened #2161

from capistrano.

G-Rath avatar G-Rath commented on September 26, 2024

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.

G-Rath avatar G-Rath commented on September 26, 2024

@mattbrictson have opened #2155 which should hopefully be pretty close to done, but either way needs some review for me to continue 🙂

from capistrano.

digitalmoksha avatar digitalmoksha commented on September 26, 2024

@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)

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.