Comments (10)
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.
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.
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.
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.
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.
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).
from plexrequests-meteor.
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.
@jrudio thanks for the link to the synchronous version!
from plexrequests-meteor.
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.
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)
- [Feature Request] Support HTTPS connection as well as HTTP HOT 1
- Cannot create initial admin account HOT 2
- [Feature Request] Check Plex before requesting
- Radarr is set for TV requests and not movie HOT 2
- I'm loading your docker into some ansible code to build out. getting error.
- [Feature Request] Allow user ability to delete movie from server
- I have version 1.21.2, and the about page under admin reports there is an update available. HOT 2
- Require approval is checked and requests are being automatically approved.
- No "register" option on admin page HOT 12
- Plexrequests on Meteor fails to load on seedbox
- How often does plexrequests interact with a connected api
- Can't seem to connect sickrage and couchpotato from whatbox
- Error: MONGO_URL must be set in environment HOT 1
- [Request] digital release in a different country
- Can you move away from SickRage and move to SickChill? HOT 1
- Error on boot - => Exited with code: 8 HOT 2
- Login Forbidden HOT 2
- Requests says it completed successfully, but it is not showing up in Radarr
- Unable to connect Plexrequests to Sonarr
- Radarr Post Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plexrequests-meteor.