Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add another method of installation for Pterodactyl #36

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions docs/self-hosting/installation/pterodactyl.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,25 @@ Note that although the bot may use under 100-150MB of RAM (depending on the serv

Start by creating a new Node.js v18 server.

1. Set the git repository to `https://github.com/discord-tickets/bot`
2. Set the branch to the latest tag, e.g. `v4.0.0`.
You can find the latest tag at the top right corner of this page or [here](https://github.com/discord-tickets/bot/releases/latest).
3. Enable auto-updating so the startup script will download the code for you
4. Change the file to `src/index.js`

![Screenshot](/img/pterodactyl-1.png)
!!! Installation Methods
=== "The Git Method (recommended)"
1. Set the git repository to `https://github.com/discord-tickets/bot`
2. Set the branch to the latest tag, e.g. `v4.0.0`. You can find the latest tag at the top right corner of this page or [here](https://github.com/discord-tickets/bot/releases/latest).
3. Enable auto-updating so the startup script will download the code for you
4. Change the file to `src/index.js`
![Screenshot](/img/pterodactyl-1.png)

=== "Using the source code (use if Git doesn't work)"
1. Download the latest source code from [here](https://github.com/discord-tickets/bot/releases/latest)
2. Go to your Pterodactyl servers file manager and upload the file
3. Click the three dots to the side of the file and extract it
4. Go to the "Startup" section and change the "Main JS File" (may also be called "JS File" or something similar) to `src/index.js`

After starting the server for the first time, should see something like this.
Don't worry about the environment variable error yet.

![Screenshot](/img/pterodactyl-2.png)


## Environment variables

Go to the Files tab and open the `.env` file (start the server if it doesn't exist).
Expand Down