https://github.com/reactiumcore/git-pull
https://github.com/reactiumcore/git-pull
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/reactiumcore/git-pull
- Owner: ReactiumCore
- Created: 2023-01-04T11:56:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-06T10:48:35.000Z (over 3 years ago)
- Last Synced: 2025-03-14T20:46:30.233Z (about 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Git Pull
Process that watches a git repo and automatically pulls changes down.
## Installation
SSH into your server instance:
```
ssh -i "yourkey.pem" ubuntu@ec2-instance.amazonaws.com
```
Clone this repo
```
git clone https://github.com/Atomic-Reactor/Git-Pull.git
```
Start the service
```
cd Git-Pull
npm start
// Using PM2?
cd Git-Pull
pm2 start npm --watch --name "Git-Pull" -- start
pm2 save
```
You can update the codebase via `git pull`. If you're using PM2 it will automatically restart the service.
## Config
You can create a config.js file to customize the git watch and branch.
### branch
The remote branch to pull
> The remote must have a valid ssh key supplied for any clients executing a pull.
### watch
The local git repository path