Add notes on dev debugging
This commit is contained in:
parent
dafe5c3419
commit
76d6df7e26
11
README.md
11
README.md
@ -89,3 +89,14 @@ ownerId=<your Discord user ID>
|
|||||||
statusChannelId=<Discord channel ID of channel used for status messages>
|
statusChannelId=<Discord channel ID of channel used for status messages>
|
||||||
clientId=<Discord user ID of your bot>
|
clientId=<Discord user ID of your bot>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Running NodBot-dev Locally for Debugging
|
||||||
|
|
||||||
|
1. Ensure that the `nodbot-dev` Docker container is stopped on the VPS.
|
||||||
|
2. Create an SSH tunnel to the MariaDB instance on the VPS:
|
||||||
|
`ssh -L 3307:localhost:3307 vps`
|
||||||
|
3. Install NodeJS LTS (18 right now)
|
||||||
|
4. Install packages:
|
||||||
|
`npm i`
|
||||||
|
5. Create a `.env` file and populate it
|
||||||
|
6. Launch and debug!
|
||||||
Loading…
Reference in New Issue
Block a user