Update install instructions to include Redis

This commit is contained in:
Dragon Fire
2020-11-19 19:50:28 -05:00
parent 18549374cf
commit b3e9003385
+8 -6
View File
@@ -115,9 +115,10 @@ don't grant that permission.
2. [Follow these instructions to install the dependencies for `node-canvas`](https://github.com/Automattic/node-canvas/wiki/Installation:-Windows). 2. [Follow these instructions to install the dependencies for `node-canvas`](https://github.com/Automattic/node-canvas/wiki/Installation:-Windows).
3. [Follow these instructions to install ffmpeg](https://www.wikihow.com/Install-FFmpeg-on-Windows). 3. [Follow these instructions to install ffmpeg](https://www.wikihow.com/Install-FFmpeg-on-Windows).
4. [Install ImageMagick](https://imagemagick.org/script/download.php). 4. [Install ImageMagick](https://imagemagick.org/script/download.php).
5. Run `npm i --production` in the folder you cloned the bot. 5. [Follow these instructions to install Redis](https://riptutorial.com/redis/example/29962/installing-and-running-redis-server-on-windows). Remember to set up a password!
6. Run `npm i -g pm2` to install PM2. 6. Run `npm i --production` in the folder you cloned the bot.
7. Run `pm2 start Xiao.js --name xiao` to run the bot. 7. Run `npm i -g pm2` to install PM2.
8. Run `pm2 start Xiao.js --name xiao` to run the bot.
### Mac ### Mac
@@ -134,9 +135,10 @@ don't grant that permission.
5. [Follow these instructions to install the dependencies for `node-canvas`](https://github.com/Automattic/node-canvas/wiki/Installation%3A-Ubuntu-and-other-Debian-based-systems). 5. [Follow these instructions to install the dependencies for `node-canvas`](https://github.com/Automattic/node-canvas/wiki/Installation%3A-Ubuntu-and-other-Debian-based-systems).
6. Run `apt install liblqr-1-0-dev liblqr-1-0` to install liblqr (needed for ImageMagick). 6. Run `apt install liblqr-1-0-dev liblqr-1-0` to install liblqr (needed for ImageMagick).
7. [Follow these instructions to install ImageMagick](https://www.tecmint.com/install-imagemagick-on-debian-ubuntu/). 7. [Follow these instructions to install ImageMagick](https://www.tecmint.com/install-imagemagick-on-debian-ubuntu/).
8. Run `npm i --production` in the folder you cloned the bot. 8. [Follow these instructions to set up Redis](https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-redis-on-ubuntu-18-04). Remember to set up a password!
9. Run `npm i -g pm2` to install PM2. 9. Run `npm i --production` in the folder you cloned the bot.
10. Run `pm2 start Xiao.js --name xiao` to run the bot. 10. Run `npm i -g pm2` to install PM2.
11. Run `pm2 start Xiao.js --name xiao` to run the bot.
## Filling Out Your .env File ## Filling Out Your .env File