Re: [capistrano-mailing-list] Capistrano deployment issue

2022-01-06 Thread Lee Hambley
x27;s application logs to find out why Rails couldn't start, or whether your HTTP server's configuration is correct, and Rails is listening on the correct port/ip/socket/domain socket. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On Thu, 6 Jan 2022 at 00:17, Nish wrote: &

Re: [capistrano-mailing-list] Curiosity

2021-02-23 Thread Lee Hambley
://sanjuancapistrano.org/ This happened something like 2008, or 2011, and we've been running like this for a decade or more now. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On Tue, 23 Feb 2021 at 15:25, Jefferson C. wrote: > > Hello guys, > > I would like to know why this

Re: [capistrano-mailing-list] Re: Execute a task on multiple hosts with different environment variables

2019-05-07 Thread Lee Hambley
than Capistrano and as the maintainer for over 10 years now I can say that containers (or, any technology giving you control over your environment *absolutely*) are an incredible productivity, security and predictability win. Regards, Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On M

Re: [capistrano-mailing-list] Execute a task on multiple hosts with different environment variables

2019-05-06 Thread Lee Hambley
https://capistranorb.com/documentation/faq/why-does-something-work-in-my-ssh-session-but-not-in-capistrano/ has a nice graphic to help you understand which files Capistrano may load, and why, when. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On Sat, 4 May 2019 at 08:50, Francesco

Re: [capistrano-mailing-list] Linked Folders produces strange results

2017-12-12 Thread Lee Hambley
Hi Vincent, linked_dirs links directories from the shared/ path into the current release. This means as a rule that your public/ from Git will be replaced by one in shared/. I hope that clears up and misunderstanding from linked_dirs. What were you hoping to achieve? On 12 Dec 2017 20:16, "Vincen

Re: [capistrano-mailing-list] Need to run arb commands on command line

2017-12-06 Thread Lee Hambley
You can quite easily replicate that with something like: task :invoke_mine do on roles(:demo), in: :parallel do |host| execute ENV["COMMAND"] end end It was dropped because it was seldom used as far as we know. I think you might be the first person in ~4yrs to ask abou

Re: [capistrano-mailing-list] best way to run tasks locally?

2017-12-06 Thread Lee Hambley
: - http://www.rubydoc.info/gems/rake/FileUtils#sh-instance_method You lose a little of the logging niceness from Airbrussh/SSHKit, but there's no SSH in the game, so I think it's acceptable that hostnames/IPs, etc are not logged, as it's implicit. Lee Hambley http://lee.hambley.name/ +

Re: [capistrano-mailing-list] Is there a roadmap for future Capistrano features and releases? eg What is coming in version 4?

2017-10-19 Thread Lee Hambley
There isn't really a roadmap, it's "finished" barring staying current and avoiding "bit rot". In general Capistrano (v3, since 2013) is designed to be a stable core, around which a plugin ecosystem can exist without direct intervention or blessing from us can flourish. V2 was not very extensible,

Re: [capistrano-mailing-list] In 'require': cannot load such file -- capifony_symfony2 (LoadError)

2017-10-18 Thread Lee Hambley
on the list use the 4 year old 2.x branch of Capistrano, so it's unlikely people will be able to help much. The 3.x branch is easier to use and better supported. (And, to my knowledge supports Symfony just as well, if not better) Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 18 O

Re: [capistrano-mailing-list] 2 rake db:migrate processes spawns when deploying

2017-07-18 Thread Lee Hambley
Probably you have more than on DB / Migration server defined and neither/both are flagged "primary". On 18 Jul 2017 10:35, "Armin Primadi" wrote: > Versions: > >- Ruby - 2.2.3 >- Capistrano - 3.4.1 >- Rake - 10.4.1 >- Rails - 4.1.2 > > Platform: > >- Working on Mac OS X >

Re: [capistrano-mailing-list] How to use copy_exclude parameter in Capistrano 3.5.0 ?

2017-07-04 Thread Lee Hambley
documentation. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 4 July 2017 at 05:55, Sanchita Halder wrote: > Hello, > > I want to add the copy_exclude parameter in Capistrano 3.5.0. But when I > added , it is not working. I dont want to use .gitattributes . > Ca

Re: [capistrano-mailing-list] LoadError: Could not load 'active_record/connection_adapters/mysql2_adapter'

2017-06-26 Thread Lee Hambley
Did you try the steps at http://capistranorb.com/documentation/faq/why-does-something-work-in-my-ssh-session-but-not-in-capistrano/ ? Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 26 June 2017 at 16:56, tom wrote: > HI, im getting the error below during a cap deploy. i can

Re: [capistrano-mailing-list] Capistrano 3 / rbenv / no PTY / best practices

2016-11-22 Thread Lee Hambley
Hey Justin, Lee - no this is good info and what I needed. This is our last site using > Compass at the moment and this may just push us to invest the time we need > to get rid of Compass. I'm on the Ops, not the Dev side, so will need to > take this back to the Devs and get

Re: [capistrano-mailing-list] Capistrano 3 / rbenv / no PTY / best practices

2016-11-15 Thread Lee Hambley
/launchpad.net/~brightbox/+archive/ubuntu/ruby-ng [2]: https://rvm.io/binaries/ Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 14 November 2016 at 22:08, wrote: > I've updated the code to use that module, but I don't think it's doing > what we need. I think the pro

Re: [capistrano-mailing-list] Capistrano 3 / rbenv / no PTY / best practices

2016-11-07 Thread Lee Hambley
Were you using https://github.com/capistrano/rbenv ? Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 7 November 2016 at 15:51, wrote: > > > On Sunday, November 6, 2016 at 11:51:16 AM UTC-5, Lee Hambley wrote: >> >> Justin, >> >> Were you stil

Re: [capistrano-mailing-list] Capistrano 3 / rbenv / no PTY / best practices

2016-11-06 Thread Lee Hambley
Justin, Were you still struggling with this? Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 4 November 2016 at 14:00, wrote: > Versions: > >- Ruby - ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] >(from /opt/rbenv/shims/ruby) >- Cap

Re: [capistrano-mailing-list] Capistrano looses progress

2016-10-24 Thread Lee Hambley
Great, glad to hear it :) Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 24 October 2016 at 10:18, Arne De Herdt wrote: > Hey Lee, > > I figured out the problem. > It was actually the VPN that terminates the connection after one hour. > The entire backup simpl

Re: [capistrano-mailing-list] Capistrano looses progress

2016-10-20 Thread Lee Hambley
nd is to run the output of `pg_dump` through `pv` [1] and set it to print some periodic status update, pv is a pretty worthwhile little tool anyway, and it might solve this problem really neatly. [1]: Pipe Viewer (http://www.ivarch.com/programs/pv.shtml) Lee Hambley http://lee.hambley.name/ +49 (0) 170

Re: [capistrano-mailing-list] Getting the dreaded "Stage not set, ..." error, can't get around it.

2016-10-04 Thread Lee Hambley
Hi Faddah, You might be better served by roots.io whixh is an ansible2 based WordPress+wp-cli deployment tool which formerly used Capistrano and sounds a lot like what you're doing. (Sent from my Nexus 6, please forgive typos!) On Oct 5, 2016 08:02, "Faddah Steve Yuetsu Wolf" wrote: > Versions

Re: [capistrano-mailing-list] How to write a capistrano plugin?

2016-08-12 Thread Lee Hambley
Hi Haani, The best thing to do is to look at something like https://github.com/capistrano/rails plugin and/or something *very* simple such as https://github.com/harrowio/capistrano-harrow which is a minimal plugin with one single hook Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On

Re: [capistrano-mailing-list] Capistrano v3 support on AIX.

2016-07-26 Thread Lee Hambley
Hi Nam, Try it and report back, we don't expect much except for an SSH server and some pretty standard POSIX tools, it ought to work. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 26 July 2016 at 12:44, wrote: > Versions: > >- Ruby: ??? >- Capistran

Re: [capistrano-mailing-list] Ad-hoc task doesnt run remotely

2016-07-20 Thread Lee Hambley
Line 21 reads a local file. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 19 July 2016 at 10:57, Frank Laszlo wrote: > Versions: > >- Ruby 2.3.1p112 >- Capistrano 3.5.0 >- Rake 10.5.0 > > Platform: > >- Ubuntu 16.04 >- Cent

Re: [capistrano-mailing-list] having trouble while deploying code with capistrano in aws server

2016-06-14 Thread Lee Hambley
Please see http://capistranorb.com/documentation/getting-started/authentication-and-authorisation/ Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 14 June 2016 at 21:34, Sandeep Singh <300bi...@gmail.com> wrote: > Versions: > >- Ruby >- Capistrano >

Re: [capistrano-mailing-list] Run a task as root user

2016-06-10 Thread Lee Hambley
Assuming you use v3+ https://github.com/capistrano/sshkit/blob/master/EXAMPLES.md#run-a-command-in-a-different-directory-as-a-different-user Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 10 June 2016 at 11:33, Vidhan Agarwal wrote: > Hi, I am a sudoer called 'ubuntu

Re: [capistrano-mailing-list] How to make overridden code handle errors correctly?

2016-06-08 Thread Lee Hambley
That's probably a problem then Will, perhaps you could open an issue on Github and we'll look into it? Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 8 June 2016 at 15:44, Will Platnick wrote: > I didn't give every line of code, just an example of what I

Re: [capistrano-mailing-list] How to make overridden code handle errors correctly?

2016-05-31 Thread Lee Hambley
es errors https://github.com/capistrano/sshkit/blob/master/EXAMPLES.md#make-a-test-or-run-a-command-which-may-fail-without-raising-an-error Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 31 May 2016 at 14:14, Will Platnick wrote: > Hello, > I have a capistrano deploy that I overr

Re: [capistrano-mailing-list] Help resolve AWS error

2016-05-23 Thread Lee Hambley
g if this is related to the way Capistrano sets up the connection, or not by looking at this entry in our FAQ: * http://capistranorb.com/documentation/faq/why-does-something-work-in-my-ssh-session-but-not-in-capistrano/ Cheers, Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On

Re: [capistrano-mailing-list] How to handle commands that hang on the remote end?

2016-05-18 Thread Lee Hambley
d then signals it after a certain number of seconds, but it ends up being quite convoluted. Bash's (assuming you're using the Bourne shell) FAQ #68 has a wealth of good information: http://mywiki.wooledge.org/BashFAQ/068 Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 16 Ma

Re: [capistrano-mailing-list] How to keep vendor directory after each deployment

2016-04-20 Thread Lee Hambley
You can add it to :linked_dirs Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 20 April 2016 at 14:17, Michael K. Ocansey wrote: > As it stands, my capistrano deployment wipes my destination directory and > pulls a new copy in from my git repo. After each deployment I n

Re: [capistrano-mailing-list] sudo: no tty present and no askpass program specified

2016-03-31 Thread Lee Hambley
someone gets a shell on your machine, you're in unrecoverable trouble anyway. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 31 March 2016 at 00:33, Stefano Schiavi wrote: > First, thank you all for your help! > I am posting because I have yet to solve the sudo issue. I

Re: [capistrano-mailing-list] Fail on rvm:check

2016-03-31 Thread Lee Hambley
You might want to ask the rbenv community for help. I unfortunately don't personally, not recommend to run rvm or other ruby version switchers in production. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 31 March 2016 at 10:11, pan yuan wrote: > Yeah, I have just

Re: [capistrano-mailing-list] Specify port on deploy

2016-03-30 Thread Lee Hambley
You might want to check http://www.tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap15sec121.html Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 30 March 2016 at 17:06, wrote: > Hi Lee, > > thanks for the answer, but I can't find a documented solu

Re: [capistrano-mailing-list] Specify port on deploy

2016-03-30 Thread Lee Hambley
Seems like you found outdated guide that aren't clear about which version of Capistrano they refer to. Please read https://github.com/capistrano/sshkit#tunneling-and-other-related-ssh-themes and try that. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 30 March 2016 at 11:00,

Re: [capistrano-mailing-list] Fail on rvm:check

2016-03-29 Thread Lee Hambley
Have you read this? http://capistranorb.com/documentation/faq/why-does-something-work-in-my-ssh-session-but-not-in-capistrano/ (sent from my phone, please excuse typos) On 30 Mar 2016 7:58 a.m., "pan yuan" wrote: > Versions: > >- Ruby: 2.3.0 >- Capistrano: 3.4.0 >- Rails: 4.2.5 > > P

Re: [capistrano-mailing-list] Bastion host to run customed deploy tasks

2016-03-28 Thread Lee Hambley
to look for SSH config. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 29 March 2016 at 00:52, Mason Leung wrote: > Hi, > > We use capistrano to deploy scala app (we also have rails apps, so > capistrano is our standardized deploy tool). This (both ruby and > scala) w

Re: [capistrano-mailing-list] Apply parallelism (concurrency) to multiple tasks

2016-03-19 Thread Lee Hambley
te catches people out frequently enough that I ought to alias one to the other. Rake as a build tool, invoke is more useful for avoiding unnecessary work, for tools like Cap, I barely see the case for having a "once" option. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 18

Re: [capistrano-mailing-list] Apply parallelism (concurrency) to multiple tasks

2016-03-19 Thread Lee Hambley
ps, but I must admit that a handful of lines of pseudo code from your end would raise my confidence factor in making suggestions 10x. Cheers, Lee Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 18 March 2016 at 04:48, Eric Rutherford wrote: > Hello Lee > No problem at all on t

Re: [capistrano-mailing-list] Apply parallelism (concurrency) to multiple tasks

2016-03-19 Thread Lee Hambley
ion queue whilst I ignore your email next time ;-) Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 16 March 2016 at 19:24, Eric Rutherford wrote: > Versions: > >- Ruby 2.0.0 >- Capistrano 3.4.0 > > I'm trying to work out a solution to limit the number

Re: [capistrano-mailing-list] capistrano for non ruby application

2016-03-11 Thread Lee Hambley
eployment requirements, > Capistrano can easily be extended to support them. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 11 March 2016 at 11:55, Ashwini Choudhari wrote: > hi , i am new to capistrano, ruby i want to how to use capistrano for non > ruby application & w

Re: [capistrano-mailing-list] [Capistrano 3] Deploy to Production Server from Local Repo

2016-01-24 Thread Lee Hambley
​You can't deploy this way. The docs specifically mention a repository must be reachable by the server to which you deploy. There are some community (unsupported) plugins which can deploy via *Copy*.​ Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 24 January 2016 at

Re: [capistrano-mailing-list] Way to do ":background" without background?

2015-12-18 Thread Lee Hambley
r are important, and so can be redirecting stdout/err to a file that isn't bound to the SSH TTY that Capistrano creates. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 18 December 2015 at 18:30, Carlos Peñas wrote: > > On Friday, 18 December 2015 17:03:17 UTC+1, Lee Hamble

Re: [capistrano-mailing-list] Way to do ":background" without background?

2015-12-18 Thread Lee Hambley
First of all, well read - the `:background => true` is deprecated, because backgrounding things is hard, and unreliable, basically as you might have seen all it does it `nohup` and `&` if memory serves. So there's two things you can do, the one - as you alluded to is `&` on the end of the line. Th

Re: [capistrano-mailing-list] Multiple roles/apps from the same Capfile

2015-12-11 Thread Lee Hambley
Hi David, Still struggling? Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 9 December 2015 at 19:06, David Resnick wrote: > I'm new to Capistrano and am trying to figure something out. > > I have a codebase that until now has been a Ruby on Rails application >

Re: [capistrano-mailing-list] How to pass roles to server method programmatically?

2015-12-01 Thread Lee Hambley
Capistrano.env.server(...) should work for accessing this method outside the DSL, but it's unsupported, and I never tried it! Let me know if it works? Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 1 December 2015 at 18:46, Lee Hambley wrote: > Did you check the implement

Re: [capistrano-mailing-list] How to pass roles to server method programmatically?

2015-12-01 Thread Lee Hambley
Did you check the implementation of server in the "DSL" file? On 1 Dec 2015 6:34 p.m., "Faissal Elamraoui" wrote: > Hello everyone, > > I have a list of IP addresses which i iterate over to declare Capistrano > servers (*outside any DSL context*) and i'm wondering how can i pass > roles as a para

Re: [capistrano-mailing-list] IP Address change - cap using old address

2015-12-01 Thread Lee Hambley
Hi Paul the reference is in the cached repository that Cap uses to speed up deployments. Log into your server and look for a directory in, or near your deploy_to directory called something like cached_repo and delete it, it'll come back on next deploy with new references. On 1 Dec 2015 4:22 p.m., "

Re: [capistrano-mailing-list] Don't know how to build task 'git:check'

2015-11-16 Thread Lee Hambley
p;& cap deploy production)" (to avoid having to name the file explicitly) Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 16 November 2015 at 21:01, Charles Mean wrote: > Versions: > >- ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux] >- Capistrano V

Re: [capistrano-mailing-list] Broken web based capistrano modal on website

2015-11-05 Thread Lee Hambley
It can be dismissed with the "no" button and writes a cookie. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 5 November 2015 at 16:27, wrote: > Hi, > > your modal for displaying a link to > https://www.harrow.io/hosted-capistrano-for-teams/?utm_source=CAP&a

Re: [capistrano-mailing-list] github.com/capistrano/unicorn

2015-10-20 Thread Lee Hambley
Theoretically we create a team, and the owner transfers the repo ownership to "capistrano", then we give the owner back their repo control, the old one redirects to the new courtesy of GH's redirect feature, and they continue to work in peace. Lee Hambley http://lee.hambley.name/

Re: [capistrano-mailing-list] Re: asset:precompile hangs when run remotely.

2015-10-19 Thread Lee Hambley
Good information, thank you for sharing. It's a shame that it hangs without printing any output, if it would Capistrano would normally print it. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 19 October 2015 at 21:39, Moritz Schepp wrote: > I just had this problem (I

Re: [capistrano-mailing-list] Deploying via a bastion server

2015-10-14 Thread Lee Hambley
t;env | grep AUTH") end end task :ssh_add do on roles(:all) do execute(:'ssh-add', '-L') end end end Then simply call those from the command line: [localhost] $ cap agent_forwarding:env_auth [localhost] $ cap agent_forwarding:ssh_add That shoul

Re: [capistrano-mailing-list] Re: Trying to precompile assets as part of a cap deploy to production

2015-10-02 Thread Lee Hambley
Great Martin, Thanks for the punctual follow up on what was the problem, I read your mail, but not being a modern Rails user myself, I wasn't too well informed on how to wrangle the asset pipeline to do what you needed. Thanks, Lee Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667

Re: [capistrano-mailing-list] Possible bug with multiple server set up

2015-10-02 Thread Lee Hambley
e know how you get on. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 2 October 2015 at 08:27, Steve Kenworthy wrote: > Versions: > >- Ruby 2.2.2 >- Capistrano 3.4.0 >- Rake 10.4.2 > > Platform: > >- Working on linux >- Deploying t

Re: [capistrano-mailing-list] Multiple Capistrano 3 questions

2015-09-13 Thread Lee Hambley
in ruby that could be > run directly in the remote host. But I guess that is limited with > "oneliner" shell commands. > > José > > On Friday, September 11, 2015 at 9:13:38 PM UTC+2, Lee Hambley wrote: >> >> Hi Jose, >> >> It's not clear

Re: [capistrano-mailing-list] Multiple Capistrano 3 questions

2015-09-11 Thread Lee Hambley
file-from-disk task :fixitup do on roles(:db) do |host| upload! './my-local-script.rb', './my-script.rb' execute :ruby, "./my-script.rb" end end # http://capistranorb.com/documentation/getting-started/before-after/ # http://capistranorb.com/documentation/getting-star

Re: [capistrano-mailing-list] Capistrano change SCP to SFTP setting

2015-09-09 Thread Lee Hambley
Capistrano relies on uploading a Git wrapper script to force some Git options otherwise you risk a hanging process. It is not possible to change the upload method from SCP to SFTP, you might try patching the Git wrapper command out, and replacing it with one of your own construction. Lee Hambley

Re: [capistrano-mailing-list] Filter based on namespace

2015-08-28 Thread Lee Hambley
adding a Rakefile with some common shortcuts. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 27 August 2015 at 21:09, Christopher J. Bottaro wrote: > The deploy task doesn't appear to do any filtering, so when I deploy, > Capistrano tries to deploy application code to my loa

Re: [capistrano-mailing-list] Deploy only remote tag of git repository

2015-08-19 Thread Lee Hambley
Sorry I can't help, perhaps someone else on the list can. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 19 August 2015 at 18:06, Jacopo Cappelli wrote: > I'm sure: > > > <https://lh3.googleusercontent.com/-2YHaE790KN4/VdSpBZme3wI/Kf0/b_YsQD3ornA/

Re: [capistrano-mailing-list] Deploy only remote tag of git repository

2015-08-19 Thread Lee Hambley
Make sure that you have pushed the branch and/or tag. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 19 August 2015 at 17:20, Jacopo Cappelli wrote: > Hi Lee, > i try to deploy git tag "2.0" as branch name but not work say me that not > exist. > I need to

Re: [capistrano-mailing-list] Deploy only remote tag of git repository

2015-08-19 Thread Lee Hambley
Capistrano will accept any valid git ref in the "branch" parameter - assuming this tag/branch/ref exists on the remote as given. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 19 August 2015 at 16:43, Jacopo Cappelli wrote: > Hi, > i'm trying to dep

[capistrano-mailing-list] Announcement: Web Based Capistrano & CI Now Available!

2015-08-17 Thread Lee Hambley
le mess, all feedback is good, and we've had good feedback from our Alpha testers, it's early days, and we can only improve from here. *Thanks for reading, this will be the last explicit unsolicited announcement about Harrow in this group!* Try it now, free for at least a month! <

Re: [capistrano-mailing-list] cleanup run by default in v3

2015-08-03 Thread Lee Hambley
cumetn (as you see fit) and I'll pull in some of the other frequent contributors to offer their opinions. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 3 August 2015 at 18:45, James Almond wrote: > Hi, > > We've recently upgraded an old app to v3. From what

Re: [capistrano-mailing-list] capistrano-service

2015-07-25 Thread Lee Hambley
Thanks for the followup PJ. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 25 July 2015 at 00:29, Pj Kelly wrote: > Just closing the loop on this thread. We re-thought this library and > re-released it under a different name: capistrano-upstart-service. > > https:

Re: [capistrano-mailing-list] automatic input

2015-07-21 Thread Lee Hambley
t be interested in a newish feature of Capistrano & SSHKit https://github.com/capistrano/sshkit#using-the-sshkitmappinginteractionhandler - note however, that needing something like this is a sign that your deployment environment is most likely poorly designed. TOTP in cases like this is pseudo sec

Re: [capistrano-mailing-list] Re: How do I get capistrano 3 to prompt for server name?

2015-07-19 Thread Lee Hambley
> If I replace the server variable in the production.rb file with the server ip address it works fine. That's what I suggested to do, by prompting for the server name. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 19 July 2015 at 16:45, Stuart Watson wrote: > It&

Re: [capistrano-mailing-list] Re: How do I get capistrano 3 to prompt for server name?

2015-07-19 Thread Lee Hambley
Thats one way, the other would simply be to use `readline` or io/consoel to read the input, i.e http://stackoverflow.com/a/11765329/119669 server STDIN.noecho(&:gets), roles: %w{foo bar baz} Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 18 July 2015 at 21:53, Stuart Watson w

Re: [capistrano-mailing-list] How do I get capistrano 3 to prompt for server name?

2015-07-17 Thread Lee Hambley
I'm sorry I can't understand what is not working as you haven't included the `server(…)` or `role(…)` lines where `roles(:app)` should be populated from. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 17 July 2015 at 17:01, Stuart Watson wrote: > Here i

Re: [capistrano-mailing-list] Re: Which hook to upload config files on?

2015-07-11 Thread Lee Hambley
you understand where all the wiring is coming from (caveat: not all plugins are written as prerequisite hooks, some simply "extend" tasks to run other tasks) Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 10 July 2015 at 11:03, Chiel Kunkels wrote: > Will definitely co

Re: [capistrano-mailing-list] Re: Which hook to upload config files on?

2015-07-09 Thread Lee Hambley
Glad you were able to get things working, the flow (as you have seen) does not document *every* hook, as the list is simply unreasonably long, if you feel the docs could be improved they are hosted at GH and we would be glad of any contribution you might make. Lee Hambley http://lee.hambley.name

Re: [capistrano-mailing-list] Re: Why are my gems not being installed?

2015-07-08 Thread Lee Hambley
ut some disagreements about whether installing Rubies *during* a deployment derailed the discussion. (probably more info than you need, but just to give you the bigger picture) Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 8 July 2015 at 11:15, Stuart Watson wrote: > Capfile &

Re: [capistrano-mailing-list] Why are my gems not being installed?

2015-07-07 Thread Lee Hambley
Can you paste your config and logs so that someone might have a look for you? Thanks! Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 7 July 2015 at 15:13, Stuart Watson wrote: > Versions: > >- Ruby 2 >- Capistrano 3 >- Rake / Rails / etc > > &

Re: [capistrano-mailing-list] Re: What is the equivalent of deploy:setup under Capistrano 3?

2015-07-07 Thread Lee Hambley
Great Stuart, I was going to say, we expect fetch() and set() to work in that situation, I'm glad you got it all working. Ping us if there's anything we can do for you in the future, thanks for being patient and battling through some of the rough parts. Lee Hambley http://lee.hambley

[capistrano-mailing-list] Re: Why is my output messed up when I run cap deploy?

2015-07-06 Thread Lee Hambley
> > The problem began when I ran: '. capify' on one of my app servers. (I > had read in a forum post that it might help me identify issues with my > setup) The output from that command complained about a version mismatch. I > fixed the issue. Since that point my server output has the inden

Re: [capistrano-mailing-list] What is the equivalent of deploy:setup under Capistrano 3?

2015-07-06 Thread Lee Hambley
seldom needed now that we don't include it by default. The deployment/hosting world is now so fragmented with chef, puppet, ansible, salt, docker, coreos, rocket, xen, lxd, lxc, where would one even know where to start? Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 6 July 20

Re: [capistrano-mailing-list] cap production deploy error

2015-06-16 Thread Lee Hambley
It appears to be a bug in some versions of capistrano-rails, or you might have a configuration error http://stackoverflow.com/a/19871874/119669 Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 17 June 2015 at 01:38, wrote: > hi, > > I'm trying to deploy my app to prod

Re: [capistrano-mailing-list] cap deploy:setup is throwing error Capistrano 3

2015-06-15 Thread Lee Hambley
At a guess, you have more than one version of Capistrano installed, and need to specify the correct one to use in your Gemfile, and execute this command rather with `bundle exec cap ...`. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 15 June 2015 at 22:40, Arup Rakshit wrote

Re: [capistrano-mailing-list] capistrano3 permission denied (using proxy)

2015-06-04 Thread Lee Hambley
The right way is to use a `.ssh/config` file, which Net:SSH (via SSHKit, via Capistrano) will pick up, this file can be in your home directory, or in your project's root. No need to have a Ruby DSL for something for which we have a perfectly good subsystem. Lee Hambley http://lee.hambley

Re: [capistrano-mailing-list] capistrano3 permission denied (using proxy)

2015-06-04 Thread Lee Hambley
I ask again, where did you see `set :ssh_options, proxy: Net::SSH::Proxy::Command.new('ssh xxx.xxx.xxx.xxx -W %h:%p')` documented? Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 4 June 2015 at 10:47, matteo bruno wrote: > Hi, > thanks a lot for your hint! >

Re: [capistrano-mailing-list] capistrano3 permission denied (using proxy)

2015-06-03 Thread Lee Hambley
other-related-ssh-themes Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 3 June 2015 at 15:27, matteo bruno wrote: > Versions: > >- Ruby 2.1.2p95 >- Capistrano 3.4 >- Rake / Rails / etc > > Platform: > >- Working on Ubuntu 14.04 >

Re: [capistrano-mailing-list] Trying to write a task to distribute files from a remote server to a group of other remote servers

2015-06-02 Thread Lee Hambley
rements on various version of SSHKit, but Capistrano two is unaware of SSHKit and it will not interfere. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 2 June 2015 at 16:03, Steve Wechsler wrote: > Thanks for the response. Can SSHkit be installed (I'm not the sysadmin) >

Re: [capistrano-mailing-list] Trying to write a task to distribute files from a remote server to a group of other remote servers

2015-06-01 Thread Lee Hambley
n often be solved by tunneling and/or remotely starting thigns with `ssh me@thehost 'thecommand'`, for example. Hard to say without more info. But, I'd absolutely avoid using Cap v2 if you're starting out, it's more than two years since EOL, but very widely documented/blogged

Re: [capistrano-mailing-list] Connect via SSH OK but SSHKit says Authentication failed

2015-05-26 Thread Lee Hambley
And the result of `$ ssh rreim...@kariera-centr.ru` ? Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 26 May 2015 at 21:33, Roman Reimche wrote: > Versions: > >- Ruby 2.2.2 >- Capistrano 3.4.0 >- Rake / Rails / etc 10.4.2 / 4.1.6 > > Platform

Re: [capistrano-mailing-list] Service restart failed after deploy task

2015-05-19 Thread Lee Hambley
attached to the Capistrano session. This unfortunately falls outside stuff I can help you with reasonably or remotely. You *might* have some success learning enough strace to see your process, and how it behaves when Cap disconnects. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 19

Re: [capistrano-mailing-list] Service restart failed after deploy task

2015-05-19 Thread Lee Hambley
Sorry, I can't see anything wrong with it. :-\ Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 19 May 2015 at 02:26, niristotle okram wrote: > hi Lee, > > here is the full /etc/init.d/ script http://pastebin.com/02G5tpgH > > > So, i placed a task to st

Re: [capistrano-mailing-list] Service restart failed after deploy task

2015-05-18 Thread Lee Hambley
ns and bad practices already in sight there, shellcheck might help you iron some of them out. (That said, honestly the problem is probably something much simpler.)​ Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 18 May 2015 at 21:14, niristotle okram wrote: > Versions: > >

Re: [capistrano-mailing-list] Don't know how to build task 'unicorn:start' Capistrino 3

2015-05-18 Thread Lee Hambley
read at least *some* documentation. I have placed you back in the "requires moderation to post" membership list here, and will exercise my right to moderate your posts at GitHub as well. On Friday, 15 May 2015 21:43:06 UTC+2, Kevin Nguyen wrote: > > Thanks, Lee. Can you

Re: [capistrano-mailing-list] Don't know how to build task 'unicorn:start' Capistrino 3

2015-05-15 Thread Lee Hambley
Sorry no time. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 15 May 2015 at 21:43, Kevin Nguyen wrote: > Thanks, Lee. Can you take a look at my old deploy.rb? I really dont know > how to rewrite all of them. > > http://pastebin.com/ashcqS4Y > > On Friday, May 1

Re: [capistrano-mailing-list] Don't know how to build task 'unicorn:start' Capistrino 3

2015-05-15 Thread Lee Hambley
I'm not sure where you expect that unicorn task to come from, probably you are looking for a plugin like https://github.com/tablexi/capistrano3-unicorn Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 15 May 2015 at 21:29, Kevin Nguyen wrote: > Versions: > >

Re: [capistrano-mailing-list] Can't rollback deploy

2015-05-13 Thread Lee Hambley
​The error would appear to indicate that the previous release doesn't contain your asset manifest, did you check?​ Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 12 May 2015 at 18:29, wrote: > Versions: > >- Ruby 2.0 >- >- gem "capistrano&

Re: [capistrano-mailing-list] help - newbie trying to writing my own task

2015-05-06 Thread Lee Hambley
file. (We covered "upload!" and friends there) Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 6 May 2015 at 21:59, Joel Taylor wrote: > Ok, so I tried that as well - see the commented out 3rd line. But this > doesn't work either, it runs the command on th

Re: [capistrano-mailing-list] help - newbie trying to writing my own task

2015-05-06 Thread Lee Hambley
stackoverflow.com/questions/19478733/capistrano-3-0-file-transfers > which lead to: > https://github.com/capistrano/sshkit/blob/v1.7.1/lib/sshkit/backends/netssh.rb#L87 > > On Wed, May 6, 2015 at 3:40 PM, Lee Hambley wrote: > >> Where do you see download! () documented? >&g

Re: [capistrano-mailing-list] help - newbie trying to writing my own task

2015-05-06 Thread Lee Hambley
asks/sync_db.rb:14:in `block > (3 levels) in ' > > /Users/myuser/Sites/mysite.dev/lib/capistrano/tasks/sync_db.rb:10:in `block > (2 levels) in ' > > Tasks: TOP => sync_db:to_local > > (See full trace by running task with --trace) > > > On Wed, May

Re: [capistrano-mailing-list] help - newbie trying to writing my own task

2015-05-06 Thread Lee Hambley
Sorry. Docs are the best we can do. The `on()` block is where Capistrano starts, and Rake ends, outside of `on()`… what server should things be run on? Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 6 May 2015 at 16:55, Joel Taylor wrote: > Yeh, but that doesn't really

Re: [capistrano-mailing-list] help - newbie trying to writing my own task

2015-05-05 Thread Lee Hambley
Capistranorb.com ? On 6 May 2015 12:53 am, "Joel Taylor" wrote: > Thanks Lee, > I guess that makes sense - but is there documentation about this? Or do > you just "know" it? :) > > Thx!! > > > > On Tuesday, May 5, 2015 at 4:13:29 PM UTC-4, Lee Hambl

Re: [capistrano-mailing-list] help - newbie trying to writing my own task

2015-05-05 Thread Lee Hambley
You're missing the "on()" block, you need to wrap the task inside something like: task :downloaddb do on roles(:db) do # <<<--- you missed this bit! # everything from your task here end end Lee Hambley http://lee.hambley.name/ +4

Re: [capistrano-mailing-list] How to publish a capistrano 3 plugin in the “official” organization?

2015-05-03 Thread Lee Hambley
Cheers, I'll pick you up at GH tomorrow! Thanks! On 3 May 2015 5:30 pm, "Simon Perdrisat" wrote: > done. You should had receive a transfer request. > > On Sun, May 3, 2015 at 3:24 PM, Lee Hambley wrote: > >> Sure! >> On 3 May 2015 1:47 pm, "Simon Perd

Re: [capistrano-mailing-list] How to publish a capistrano 3 plugin in the “official” organization?

2015-05-03 Thread Lee Hambley
ansferring it to your personal user and then you > transfer it to the capistrano organisation. Is that ok for you? > > > On Tue, Apr 28, 2015 at 9:11 AM, Simon Perdrisat > wrote: > >> Thanks I receive your invitation. >> >> On Mon, Apr 27, 2015 at 1:23 PM, Lee Hamble

Re: [capistrano-mailing-list] Re: Deploy fails during db migration (possibly not picking up :rails_env?)

2015-05-01 Thread Lee Hambley
Do you perhaps have more than one deploy.rb ? Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 29 April 2015 at 04:33, Vell wrote: > > > On Tuesday, April 28, 2015 at 6:23:51 PM UTC-4, Vell wrote: >> >> Versions: >> >>- Ruby 2.1.5 >>

Re: [capistrano-mailing-list] Some clarification on Capistrano 2 's deploy.rb

2015-04-29 Thread Lee Hambley
I'm sorry I can't be more helpful, but most of it you will find documented in source code here - https://github.com/capistrano/capistrano/tree/legacy-v2 specifically under that tag. The v2 code is now *very* old. Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 29 April 201

Re: [capistrano-mailing-list] how to invoke deploy multiple times?

2015-04-28 Thread Lee Hambley
I don't know how capistrano_multiconfig works, but probably the problem is related to http://chrisroos.co.uk/blog/2007-12-06-ruby-rake-invoke-vs-execute Lee Hambley http://lee.hambley.name/ +49 (0) 170 298 5667 On 28 April 2015 at 10:49, Chris Ramakers wrote: > We're working on

  1   2   3   4   5   6   7   8   9   10   >