Skip to content

Commit

Permalink
Merge pull request #71 from vitessio/deploy-docs
Browse files Browse the repository at this point in the history
improve the readme with some documentation on how deploy works
  • Loading branch information
frouioui authored Dec 19, 2023
2 parents 04cdfce + e01137e commit fb8a75e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,23 @@ Replace the placeholders with the proper values. You will be able to find `GITHU

Note that the `BOT_USER_LOGIN` is the name you gave the App you created above, _plus_ the literal `[bot]` on the end.

Once that is done, you should be able to run the program!
Once that is done, you should be able to run the program!

## Production deployment

The bot is deployed on a remote machine using the GitHub Actions located in `.github/workflows/deploy.yml`.

On every push to `main`, GitHub Action will run the workflow that will perform a set of commands over SSH on the production server.
Below are all the shell commands executed:

```shell
cd $HOME/vitess-bot
git reset --hard FETCH_HEAD
git clean -fd
git fetch origin main
git checkout FETCH_HEAD
killall -9 vitess-bot
source ~/.profile
go build -o vitess-bot ./go
nohup ./vitess-bot &
```

0 comments on commit fb8a75e

Please sign in to comment.