Add multi-env support #39

Merged
waifu merged 5 commits from 38_install_instructions into dev 2025-05-29 20:03:45 -07:00
Showing only changes of commit de7670204a - Show all commits

View file

@ -59,7 +59,7 @@ The bot is meant to feel *light, fun, and competitive*. Mixing social, gacha and
## 🧪 Installation
1. Download and install dependencies
### Download and install dependencies
Clone the repo
@ -81,7 +81,7 @@ Install project dependencies via pip
python3 -m pip install -r requirements.txt
```
2. Setup config file
### Setup config file
A sample config file is included with the project as a template: `example_config.ini`
@ -97,7 +97,7 @@ cp example_config.ini config_dev.ini
# Edit config_dev.ini
```
4. Setup database
### Setup database
To set up the database, run:
@ -105,7 +105,7 @@ To set up the database, run:
KEMOVERSE_ENV=dev python3 setup_db.py
```
5. Run the bot
### Run the bot
```sh
KEMOVERSE_ENV=dev ./startup.sh
@ -113,14 +113,14 @@ KEMOVERSE_ENV=dev ./startup.sh
If all goes well, you should now be able to interact with the bot.
6. Running in production
### Running in production
To run the the in a production environment, use `KEMOVERSE_ENV=prod`. You will
also need to create a `config_prod.ini` file and run the database setup step
again if pointing prod to a different database. (you are pointing dev and prod
to different databases, right? 🤨)
7. Updating
### Updating
To update the bot, first pull new changes from upstream: