WIP: Database migrations
This commit is contained in:
@@ -30,9 +30,27 @@
|
||||
3. Clone the repository:
|
||||
`git clone https://git.end-play.xyz/HoloUA/Discord.git`
|
||||
4. `cd Discord`
|
||||
5. Install dependencies:
|
||||
5. Create a virtual environment:
|
||||
`python -m venv .venv` or `virtualenv .venv`
|
||||
6. Activate the virtual environment:
|
||||
Windows: `.venv\Scripts\activate.bat`
|
||||
Linux/macOS: `.venv/bin/activate`
|
||||
7. Install the dependencies:
|
||||
`python -m pip install -r requirements.txt`
|
||||
6. Run the bot with `python main.py` after completing the [configuration](#Configuration)
|
||||
8. Run the bot with `python main.py` after completing the [configuration](#Configuration)
|
||||
|
||||
## Upgrading with Git
|
||||
|
||||
1. Go to the bot's directory
|
||||
2. `git pull`
|
||||
3. Activate the virtual environment:
|
||||
Windows: `.venv\Scripts\activate.bat`
|
||||
Linux/macOS: `.venv/bin/activate`
|
||||
4. Update the dependencies:
|
||||
`python -m pip install -r requirements.txt`
|
||||
5. First start after the upgrade must initiate the migration:
|
||||
`python main.py --migrate`
|
||||
6. Now the bot is up to date and the next run will not require `--migrate` anymore
|
||||
|
||||
## Configuration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user