Koa
HTTP serveraxios
- HTTP clientrollbar
- Error tracking
Locally listed in .env
file.
ROLLBAR_ACCESS_TOKEN
- Rollbar access tokenNODE_ENV
- Node environment (e.g.production
ordevelopment
)PORT
- Port to listen on (default:3000
)
Deployment is done via GitHub Actions.
The deployment script is located in the .github/workflows/deploy.yml
file.
Environment variables and secrets should be configured in the GitHub repository settings: Settings -> Secrets and variables -> Actions
.
- On the server generate SSH key pair:
ssh-keygen -t rsa -b 4096 -f github-actions
(without passphrase). - This will produce two files:
github-actions
(private key) andgithub-actions.pub
(public key) in the~/.ssh
folder. - Add the public key content to the
~/.ssh/authorized_keys
file on the server. - Add the private key content to the
SERVER_SSH_PRIVATE_KEY
secret in the GitHub repository settings.
SERVER_SSH_PRIVATE_KEY
- SSH private key for the deployment server.ROLLBAR_ACCESS_TOKEN
- Rollbar access token
PROJECT_PATH
- Project path on the server (e.g./var/www/application-name
)SERVER_USERNAME
- username on the deployment server (e.g.root
)SERVER_HOST
- hostname of the deployment serverPORT
- Port to listen on (default:3000
)