ddworken / hishtory

Your shell history: synced, queryable, and in context
https://hishtory.dev
MIT License
2.46k stars 45 forks source link

Allow override of serving port by env var #160

Closed richjames0 closed 8 months ago

richjames0 commented 8 months ago

Can now set HISHTORY_SERVER_PORT but will default to 8080.

A couple of caveats -

  1. this is my first public PR so it's totally possible I've messed it up.
  2. I've barely written any Go and don't have a working Go environment at present so this might not actually work but I thought it was likely at least more helpful than just raising an issue :)
ddworken commented 8 months ago

Thank you for the contribution! This LGTM and passed tests, so going ahead and merging. :)