Git Product home page Git Product logo

Comments (8)

ydkn avatar ydkn commented on May 24, 2024

It uses the same port that is used for deployment.

So if you have something like this

server 'foo.bar:4242', user: 'rails-deploy', roles: %w(web app db)

in your capistrano configuration the rails:console task will already use that as the SSH port.

Note: It uses only servers with the app role.

Does that help you?

from capistrano-rails-console.

bishopandco avatar bishopandco commented on May 24, 2024

👍

from capistrano-rails-console.

Awea avatar Awea commented on May 24, 2024

Hi there,
The task still using the default ssh port even if I configure like you say : server 'foo.bar:4242', user: 'rails-deploy', roles: %w(web app db)

from capistrano-rails-console.

ydkn avatar ydkn commented on May 24, 2024

Hi @Awea,

can you please add and run the following task:

task :show_ssh_options do
  on primary :app do |host|
    test(:true)

    puts "SSH OPTIONS:"
    puts "============"
    puts "host.port: #{host.port.inspect}"
    puts "host.ssh_options[:port]: #{host.ssh_options[:port].inspect}"
    puts ""
  end
end

from capistrano-rails-console.

Awea avatar Awea commented on May 24, 2024

Hi @ydkn,

Here his the result of the command:

SSH OPTIONS:
============
host.port: nil
host.ssh_options[:port]: 23888

from capistrano-rails-console.

ydkn avatar ydkn commented on May 24, 2024

This means that https://github.com/ydkn/capistrano-rails-console/blob/master/lib/capistrano/rails/console/tasks/remote.cap#L33 should determine the SSH port is 23888.

Which version of the gem are you using?

from capistrano-rails-console.

Awea avatar Awea commented on May 24, 2024

I'm using 0.4.0, may be a bit outdated.

from capistrano-rails-console.

Awea avatar Awea commented on May 24, 2024

I've updated to 1.0.0 and it works perfectly ^^ My bad.

from capistrano-rails-console.

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.