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

Add endpoint for auto update via GH hooks. #17

Merged
merged 3 commits into from
Dec 18, 2020
Merged

Conversation

kdzwinel
Copy link
Member

@kdzwinel kdzwinel commented Dec 17, 2020

This creates an endpoint on the server that fetches new version of the app whenever github lets us know about changes (via a webhook). We are protecting form the abuse by using a simple password that's not stored anywhere in the code.

This follows the https://support.glitch.com/t/tutorial-how-to-auto-update-your-project-with-github/8124 tutorial.

Copy link
Collaborator

@Charlie-belmer Charlie-belmer left a comment

Choose a reason for hiding this comment

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

Looks pretty good! One minor thing on hash checking which isn't that important as written, but probably good to do in case one day this becomes more sensitive.

server.js Outdated Show resolved Hide resolved
@kdzwinel kdzwinel merged commit 2d22984 into gh-pages Dec 18, 2020
@kdzwinel kdzwinel deleted the konrad/glitch-deploy branch December 18, 2020 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants