Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 523 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 523 Bytes

GIR.ts

Development

pnpm i

set up .env file

BOT_TOKEN=""
DB_CONNECTION_STRING=""

set up gir.config.json based on gir.config.example.json

pnpm dev

Migrations

When you make a change to the database schema, you need to generate a migration file. To do this, run the following command:

pnpm generate

Migrations are run on development every time you start the bot. On production, you can run the following command, but ideally have this as a build step:

pnpm migrate