Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Misc improvements to scripts/develop.sh #4995

Merged
merged 4 commits into from
Nov 10, 2022

Conversation

mafredri
Copy link
Member

@mafredri mafredri commented Nov 10, 2022

  • Use new /healthz endpoint for checking API liveness
  • Improved credential handling/retrying in failure scenarios
  • Separate site (vite) logs with prefix and date, additionally this
    method also disables the vite clearing of the screen
  • Show all interfaces coder API is listening on (due to 0.0.0.0)

Edit:

  • Improved shutdown procedure / interrupt handling (ac5d221)

image

@mafredri mafredri requested a review from a team November 10, 2022 11:40
@mafredri mafredri force-pushed the mafredri/develop-script-improvements branch from 1256ec4 to ec48b37 Compare November 10, 2022 11:41
* Use new `/healthz` endpoint for checking API liveness
* Improved credential handling/retrying in failure scenarios
* Separate site (`vite`) logs with prefix and date, additionally this
  method also disables the `vite` clearing of the screen
* Show all interfaces coder API is listening on (due to `0.0.0.0`)
@mafredri mafredri force-pushed the mafredri/develop-script-improvements branch from ec48b37 to 5fd8657 Compare November 10, 2022 11:46
@mafredri mafredri marked this pull request as ready for review November 10, 2022 11:46
scripts/develop.sh Show resolved Hide resolved
scripts/develop.sh Show resolved Hide resolved
scripts/develop.sh Show resolved Hide resolved
scripts/develop.sh Outdated Show resolved Hide resolved
scripts/develop.sh Outdated Show resolved Hide resolved
@mafredri mafredri force-pushed the mafredri/develop-script-improvements branch from 1c895d3 to 3e438e7 Compare November 10, 2022 12:32
@mafredri mafredri force-pushed the mafredri/develop-script-improvements branch from de51030 to 7f1f744 Compare November 10, 2022 12:50
@mafredri
Copy link
Member Author

Ok, made one pretty big additional change in ac5d221.

Interrupts, failures and cleanup should be handled better now. I often ran into issues with PostgreSQL or node (vite) still running after the script has exited.

Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice interrupt handling!

@mafredri mafredri merged commit a25deb9 into main Nov 10, 2022
@mafredri mafredri deleted the mafredri/develop-script-improvements branch November 10, 2022 18:47
@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants