Installing and configuring logviewer

Installing logviewer

Start by cloning the git repository:

git clone https://github.com/modmail-dev/logviewer logviewer

Move to the logviewer folder by running:

cd logviewer

Configuring logviewer

Start by renaming the env file:

mv .env.example .env

Then edit it using:

nano .env

Fill CONNECTION_URI= with the MongoDB URI you obtained from Setting Up MongoDB. You don't need to edit anything else. Press CTRL+X, type Y, then hit enter to save your changes.

Starting logviewer

Using pipenv

Install dependencies by running:

Run logviewer with:

To start logviewer using pm2 run:

If this is the first time you're using PM2 and you haven't used it for Modmail you should see a command below "[PM2] To setup the Startup Script, copy/paste the following command:". Copy and run the command. The command should look like this:

Congratulations! You now have a working Modmail and logviewer.

Last updated

Was this helpful?