Displaying 3 results from an estimated 3 matches for "logging_command".
Did you mean:
logging_commands
2006 Jun 20
2
Capistrano, chmod, and revisions.log
...n happily tell the
devs to ignore any and all chmod recommendations littered throughout
the web references to capistrano, because they are completely
unnecessary
well, until capistrano itself does a chmod.
Buried in .../gems/capistrano-1.1.0/lib/capistrano/scm/base.rb is this:
def logging_commands(directory = nil)
log = "#{configuration.deploy_to}/revisions.log"
"(test -e #{log} || touch #{log} && chmod 666 #{log}) && " +
"echo `date +\"%Y-%m-%d %H:%M:%S\"` $USER #
{configuration.revision} #{directory} >...
2006 May 16
4
Capistrano to deploy to Mac OS X?
We''re moving some "internal use" apps to a spare internal machine - instead
of a public, shared host. I''m not sure if it''s relevant, but the new machine
is running OS 10.3.
I''m having a strange problem using Capistrano. It happens on both our
development machines, and only when deploying to this server.
I run ''cap deploy'' and get:
2006 Mar 02
0
Making SwitchTower work with csh (and other non-posix shells)
...r-work-with-csh-hack
Solution (so you don''t have to read the blog post :) is to edit
$gems_dir/switchtower-1.0.1/lib/switchtower/scm/base.rb (line 34) to
read:
command = <<-STR
/usr/local/bin/bash -c
''if [[ ! -d #{configuration.release_path} ]]; then
#{guts}
#{logging_commands(directory)}
fi''
STR
So if you want to use SwitchTower along with csh, now you can.
Pat