Giter Club home page Giter Club logo

Comments (5)

jaredmorrow avatar jaredmorrow commented on July 22, 2024

Similarly, if you put an old app.config, but not vm.args file it will crash. The conditional use of old-style v. cuttlefish is pinned on the existence on the app.config, it should maybe have another level to the case to separate out the vm.args.

from cuttlefish.

joedevivo avatar joedevivo commented on July 22, 2024

yeah, the heart of the problem is in case filelib:is_file(app.config)

I've been going back and forth on the right way to make this choice. Here's where I'm at now:

If both app.config and vm.args exist in platform_etc_dir, skip the fish

If a .conf file is passed into the escript, and it exists, but either (or both) of the app.config and vm.args are missing, generate new vm.args and app.config, but only start riak with the generated version if the legacy one doesn't exist?

make sense? basically, if we're generating one, we're generating both, but we don't have actually use both.

from cuttlefish.

jaredmorrow avatar jaredmorrow commented on July 22, 2024

I think if the app.config is present we should always use it, with warnings / messages printed.

from cuttlefish.

joedevivo avatar joedevivo commented on July 22, 2024

@jaredmorrow yeah, that's what I'm saying, the words just aren't coming out right...

If there's an app.config, use it. If there's a vm.args use it. If either is missing, generate both, but only use the generated one for the one that's missing. If both are missing, use both generated. clearer?

from cuttlefish.

jaredmorrow avatar jaredmorrow commented on July 22, 2024

Yes, +1

from cuttlefish.

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.