GitHub Webhook Deployer is a simple application to automate your deployments on your single cloud server using the Github Webhook Triggers. It simply listens for push
event and based on your configuration to deploys or executes commands to deploy the application.
Watch a quick demonstration of the app in this video.
- Clone the repository
- Run
npm i
- Create
.env
file in folder root and based on the values provided in.env.sample
. - Run
npm bin/console app install
which creates a new user for the app.
DATABASE="mongodb://localhost:27017/your-db-name"
REDIS_URL="redis://127.0.0.1:6379"
SECRET="some-secret"
- Run
node ./bin/www
orpm2 start ecosystem.config.js
if you are using pm2. - Visit
http://localhost:3000
base on the port specified.
- Login with credentials
- Got to apps pages and create a new app, enter the application directory and the command to be executed on the
push
event also specifying the target branch on which the same will be executed for eg.refs/heads/master
. Copy the automatically generated secret. - You will bre redirected to the deployments page of the app and copy the webhook url.
- With all the details collected, visit Github repository and create a webhook using the details.
- Push a commit to the configured branch and the app will be deployed, you can view the deployment to know the details regarding webhook or executed script response or error.
- Node.js
- MongoDB
- Redis Server
- CSS Framework Tailwind
- Node Web Framework Express
- Dashboard theme : Admin Template Day.