Giter Site home page Giter Site logo

ewh-listener's Introduction

How to push to Deploy

Steps to do

1.Prepare a deployed server, see more

  • Install NodeJS and Git corresponding to current OS
  • Use NodeJS to run this repo with below config
  • modify port, secret, dataPath on config.js
  • verify the operation with a sample repo

2.Add a repo to 'push-to-deploy', see more

  • Add a Web Hook on the Setting of this repo and verify
  • Add new repository setting on config.js on deployed server
  • verify the deployed folder exists after pushed

3.Create domain point to deploy server

  • Set up IIS website on Windows
  • Set up Nginx, Apache, ... on Linux

How to setup config.js:

module.exports = {
    host: '0.0.0.0',
    port: 4567,
    hookPath: '/web-hook',
    secret: 'bay gio da biet',
    dataPath: 'websites',
    repositories: {
        'testGhPages': {
            repositoryUrl: 'https://github.com/nemesisqp/test-gh2.git',
            branch: 'gh-pages',
            dataPath: 'otherPath' // optional
        }
    }
};

Prepare a deployed server

  • Open port 4567 (or your own port) on Deployed Server
    • Windows: open on Firewall
    • Ubuntu: sudo ufw allow 4567/tcp, sudo ufw enable
  • Edit common fields
    • secret value to pair between Deployed Server và Git Server (github, gitlab,...)
    • dataPath : path to save deployed source

Add and config a new repository

  • Add new setting to repositories, e.g
'testOtherBranch': {
            repositoryUrl: 'https://github.com/nemesisqp/test-gh2.git',
            branch: 'otherBranch'
        }

ewh-listener's People

Contributors

nemesisqp avatar baotnq avatar tungptvn avatar thanhtdvn avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

thanhtdvn

ewh-listener's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.