This guide contains instructions on how to deploy your own instance of the bot.
- Create a new project on Vercel and link it to your GitHub repository.
- Fill in the environment variables in the Vercel dashboard (see Backend Guide).
- Update Vercel project settings:
"Build Command" — yarn build
"Output Directory" — dist
"Install Command" — yarn install
"Root Directory" — server
"Node.js Version" — `18.x
That's it! Other things are already configured for you via vercel.json
and package.json
files.
Deployment will be triggered automatically on every push to the main
branch.
- Clone the repository to your server.
- Install dependencies:
yarn install
. - Build the project:
yarn build
. - Fill in the environment variables (see Backend Guide).
- Daemonize bot. Here is an example using screen:
screen -dmS bot yarn start
You can also use pm2 or forever
, or systemd, or Docker, or whatever you want.