T
T
Tenebrius2022-01-30 14:35:33
GitHub
Tenebrius, 2022-01-30 14:35:33

How to force git pull on the host when updating a repository in GitHub?

There is a VPS, a script is launched there via pm2 (Node JS).

I would like to implement the following scenario.

  1. On the local computer is done git pushinmaster
  2. The script on the VPS somehow tracks this
  3. On the VPS side, it is done git pulland the script is reloaded ( pm2 restart ...)


The question is in the second paragraph. As far as I know, GitHub has such a thing as Actions, which allows you to track the push event to a branch. What to do next?

Need a runner on the VPS side?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fenix957, 2022-01-30
@Fenix957

https://www.jetbrains.com/en-us/teamcity/
We use it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question