Skip to content
/ nuts Public
forked from GitbookIO/nuts

🌰 Releases/downloads server with auto-updater and GitHub as a backend

License

Notifications You must be signed in to change notification settings

artisanjp/nuts

 
 

Repository files navigation

nuts with dotenv support

This fork is not meant for public distribution. Play with it at your own risk.
(we've made this just for our internal use.)

Not much has been added, it just contains dotenv support and our private startup scripts which hardcode env & process names.

Prerequisite for using start up scripts

  • Create an env file for the process.
  • install pm2 globally to use startup scripts: npm install -g pm2.
  • use bash for the start up scripts.

Env file names

  • .env.blm for box-label-manager.
  • .env.plm for package-label-manager.

Running by start up scripts

  • bash ./startBoxLabelManager.sh
  • bash ./startPackageLabelManager.sh

Daemonizing instances with pm2

  • Start process: pm2 start "bin/web.js" --name <uid> (or use startup scripts).
  • Save process info: pm2 save.
  • Install startup script: pm2 startup (You don't need sudo for this.)

Endpoints

  • Apparently README in the original repo is pretty off the actual implementation.
  • Download latest: /download/windows
  • Autoupdater target path: /update/${process.platform}/${app.getVersion()}
  • Github Webhook target: /refresh

Github Webhook Settings

  • NOTE: Content Type has to be application/json. Default value is application/x-www-form-urlencoded.

Documentation

Check out the official documentation for more details.

About

🌰 Releases/downloads server with auto-updater and GitHub as a backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.1%
  • Other 0.9%