Giter VIP home page Giter VIP logo

Comments (10)

lokenx avatar lokenx commented on July 30, 2024

I've been meaning to do that for some time just haven't had a chance, I'll move it up the to do list!

from plexrequests-meteor.

lokenx avatar lokenx commented on July 30, 2024

Currently releases to the master branch have version numbers, although it's not displayed in the application itself (seen here) but I will change this.

For the dev branch not sure what's the best way to handle it, maybe just provide the Git commit hash as it's really just a staging area for new features. Ideas welcome though!

from plexrequests-meteor.

dcplaya avatar dcplaya commented on July 30, 2024

I think Couchpotato does git hashes. I am not even sure if I am on their dev branch but it auto updates so I never have to think about it.

Anyway, I think git hashes for the dev branch would be perfectly fine. Its just a way to easily distinguish what I am on and if I should update.

from plexrequests-meteor.

lokenx avatar lokenx commented on July 30, 2024

OK, I'll look into adding that as well as stating which branch you're on (and release for master). I wish I could implement auto-updates but haven't a clue how to

from plexrequests-meteor.

selthius avatar selthius commented on July 30, 2024

I would suggest looking at similar projects, such as sickrage og CP. It probably is something like this:

git fetch
git pull
restart application

from plexrequests-meteor.

lokenx avatar lokenx commented on July 30, 2024

Started to create page, but need help creating the new server functions not async to wait for the result to pass to the client side call (I forgot nodejs stuff is all async).

59a08ef

from plexrequests-meteor.

jrudio avatar jrudio commented on July 30, 2024

There's a synchronous version of git-rev https://www.npmjs.com/package/git-rev-sync
You can use a promise on the server (Though I think there's an issue when trying to get the result on the client)
Or, a hacky way you can do is to store the result in the db.

from plexrequests-meteor.

lokenx avatar lokenx commented on July 30, 2024

@jrudio thanks for the link to the synchronous version!

from plexrequests-meteor.

lokenx avatar lokenx commented on July 30, 2024

This is entirely useless if you're using the downloaded zip file which doesn't contain the .git folder (a note is present on the page). But more importantly, when you bundle the app for running in production (how I'm running it) you also lose the git information.

Need to come up with a second way, store commit/branch in a Collection maybe, but how would those downloading the .zip get it. Unless we don't use the commit hash at all, and manually tag things.

from plexrequests-meteor.

jrudio avatar jrudio commented on July 30, 2024

How about hardcoding a semantic version in a collection and increment on every commit (obviously).

Then, on an interval check the repository for a file, say version.txt, and see if the current app is less than the version in the repo.

If it is then download the .zip and display in the console or even the application that you have a new version downloaded. You can accomplish this easily with the package request.

from plexrequests-meteor.

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.