Giter Site home page Giter Site logo

App Version Check about okcomputer HOT 4 CLOSED

sportngin avatar sportngin commented on July 28, 2024
App Version Check

from okcomputer.

Comments (4)

pbyrne avatar pbyrne commented on July 28, 2024

Seems like a nice idea. Not sure how'd that work as a built-in, though. Off the top of my head, I can't think of a good way to make this generic. Maybe a specific GitRevision check, could work. Or even one that can inspect a handful of common VCSs.

from okcomputer.

anfleene avatar anfleene commented on July 28, 2024

Yeah thats not a bad idea. I was thinking we could use a generic version file or something.

from okcomputer.

pbyrne avatar pbyrne commented on July 28, 2024

Capistrano 3 now puts the current release version in a REVISION file in the app root. That seems a reasonable default location to read, with either the (relative) file path a configuration option, or maybe a configurable block to execute which would output the revision (e.g., in our Unicorn configuration, we parse the revision into an environment variable visible to the app).

from okcomputer.

anfleene avatar anfleene commented on July 28, 2024

I like using the REVISION file. using an ENV variable is fine too. We could try those two things and then give up. a user could set it themselves in an initializer.

from okcomputer.

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.