npm run update
to automate pulling down the latest code from git
#156
Labels
infrastructure
something to do with hosting/operating a Postmarks instance
People who don't know how to manage git should be able to receive updates to Postmarks. I've been talking to some other folks at Glitch and it sounds like the best way to support Glitch installs (and one that should be plenty useful to non-Glitch installs as well) is to provide some npm scripts that manage this.
Proposal outline:
npm run update
, given that a git upstream has been set, should take the current git HEAD, move it into a backup branch, then (force-?)pull from the main branch (if we eventually change release strategies, we can change this script to do something more nuanced to find the current installed version & grab the latest version that we believe we can safely update the user to)npm run git-setup
should exist to prompt the user for a URL to a git remote, defaulting to the main postmarks repo, giving someone an opportunity to specify their own fork if they're choosing to manage the project that way.In general everything relevant data-wise should be safe given that .gitignore includes the directory, but maybe we should also make backups of .db files?
It seems like there might be previous work here in other projects–curious if anyone knows of any other relatively small projects that have already handled something like this (less interested in something as heavyweight, or as Docker-oriented, as Mastodon)
The text was updated successfully, but these errors were encountered: