Giter Club home page Giter Club logo

Comments (6)

fschulze avatar fschulze commented on July 30, 2024

Are you using the fabfile directly? You should use ./bin/aws do [instance-name] [fabric options]

from ploy.

kent37 avatar kent37 commented on July 30, 2024

I use the command aws do dynamic_canvas show_in_browser. show_in_browser just opens a webbrowser to the host. It is going to http://dynamic_canvas instead of the actual EC2 name. The code for do_cmd() sets hoststr = argv[0] which is the instance name from the config file. That is passed as the -H argument to fab.

Prior to the revision I cited, hoststr was set to the host result of calling init_ssh_key() which is the public_dns_name for the instance.

from ploy.

kent37 avatar kent37 commented on July 30, 2024

OK, I get it. The translation from instance name to public DNS name happens in HostConnectionCache in fabric_integration.py. This means that the host name in the fabfile is the instance name and the public DNS name is not available to the fabfile.

from ploy.

fschulze avatar fschulze commented on July 30, 2024

I guess the best fix then would be to expose the public and maybe private DNS name to the fabfile.

from ploy.

kent37 avatar kent37 commented on July 30, 2024

Yes. Ideally the host name passed to the fabfile would be the correct hostname.

from ploy.

fschulze avatar fschulze commented on July 30, 2024

The env contains server which is the instance object which has all one needs, like the config etc.

from ploy.

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.