Unlimited Credits is now available for just $10 with a one-time payment! Upgrade today before this limited-time offer ends.
Documentation

Files and SFTP

Upload a Discord bot project with the Pterodactyl file manager or an SFTP client.

Upload with the file manager

  1. 1
    Open the server in Pterodactyl.
  2. 2
    Open Files.
  3. 3
    Upload the project files into the server root unless the project requires another folder.
  4. 4
    For a large project, upload a ZIP archive, open its menu, and extract it.
  5. 5
    Make sure the main file is in the expected location.
  6. 6
    Remove extra outer folders created by ZIP tools. The server root should contain files such as package.json or requirements.txt when the project needs them.

Important project files

RuntimeCommon files
Node.jspackage.json, package-lock.json, index.js or bot.js, source folders, .env when used
Pythonrequirements.txt, main.py or bot.py, package folders, .env when used
Static websiteindex.html, CSS, JavaScript, images
PHP websitePHP files and the public folder when the startup command uses it

Use SFTP for many or large files

  1. 1
    Open the Pterodactyl server.
  2. 2
    Open the Settings page and find the SFTP connection details.
  3. 3
    Install an SFTP client such as FileZilla or WinSCP.
  4. 4
    Enter the shown server address and port.
  5. 5
    Use your Pterodactyl username and password.
  6. 6
    Connect and upload the files to the server directory.
  7. 7
    Return to the panel file manager and check that the files arrived.
Keep secrets private

Use SFTP, not plain FTP. Never send your panel password, bot token, client secret, or SFTP password to another person.

Environment values and tokens

  • Store the Discord bot token in an environment variable or protected .env file when your project supports it.
  • Do not upload a token to a public repository.
  • If a token appears in logs, screenshots, or shared files, reset it in the Discord Developer Portal.
  • After editing environment values, restart the server.