The main ideia of this project is develop your Glitch project using your prefered development tools (code editor, plugins, etc) with a code versioning (git).
The sync works in both ways, but the default is Github -> Glitch.
Just make a git push
to Github repository. The Glitch repository will be updated automaticaly.
Export your Glitch repository to Github. This will add a new glitch branch on your Github repository. Then, merge glitch branch to master.
-
Copy this repo
Fork this repository and clone the forked repository to local machine.
-
New Glitch project
Create new Glitch project based on forked github repo url.
-
Setup .env file
On Glitch project, create a .env file with the following keys:
GITHUB_URL
andGITHUB_SECRET
. To generate yourGITHUB_SECRET
you can use a tool like this. -
Setup Webhook
On Github forked repo settings, create a new webhook.
And congfigure the Payload URL to point to
https://<YOUR_GLITCH_PROJECT>.glitch.me/git
, change the Content Type toapplication/json
and use the same value ofGITHUB_SECRET
of .env file in Secret field. -
All done
Now, on your local repo, make a change in code and push to github. The glitch project will be updated automatically.
Click on the image or here to see the video in better quality and normal speed.