Skip to content

peer-network/peer_cd

Peer CD

This is the repository of Peer Networks Continuos Deployment (CD) Code.

Continuos Deployment

This repo is to track files and changes in Peers' Continuos Deployment.


PHP Webhook

peer_backend

Set to catch the PHP API to start a build.

There are 3 files that are needed

  • peer-deploy-hok.php
  • deploy-backend.sh
  • payload.json
    • for testing

There is a test curl command that can run this deploy script as a test.

curl -X POST https://peer-network.eu/deploy-hook -H "Content-Type: application/json"   -H "X-Hub-Signature-256: sha256=$SIGNATURE" --data-binary @payload.json

Monitor database

peer_monitor

New server added to the beta-testing group. It is running a script to test the prod database or "The Feed" of Peer. if there is any thing wrong with the database, an alert is send to Telegram An example

image

There is a cron job that runs the monitor every 3 minutes.

*/3 *   * * *   root    bash /home/ubuntu/peer_cd/monitoring-stack/scripts/monitor-api-py.sh >> /var/log/postman_logs/cron.log 2>&1

GitHub Push to server

to have a Github push to propigate to the CD servers to update the code when needed.

To have pushes to this repo to be be 'pushed' to the repected servers. This CD will be split between

  • Main
    • This brach will push changes for monitoring Prod systems
  • Dev
    • This brach will push to the testing envirnment

DevOps then can push to Dev easily and can test there changes. When all parties are happy then a merge to Main and push to effect Prod.

About

This is the repository for our continious deployment code.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •