For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to compress?

Learn how to create your project's .zip file the right way before uploading it to Discloud.

To upload an application to Discloud, you need a .zip file with your project. What matters most is what's inside it: when you open the .zip, your project files should be right there, with no extra folder around them.


📂 What goes inside the .zip

The .zip must start directly at the project root, where your discloud.config and main file are.

my-bot.zip
├── discloud.config
├── package.json
└── src/
    └── index.js

When you open the .zip, the project files are right at the first level.

my-bot.zip
└── my-bot/
    ├── discloud.config
    ├── package.json
    └── src/
        └── index.js

The my-bot/ folder ended up around everything. Because of it, discloud.config and the main file are not at the root of the .zip.


🗑️ What to leave out

Don't send files that aren't needed to run the application. This keeps the upload smaller and faster.

- node_modules
- venv
- .git
- .DS_Store
- __pycache__

Use a .discloudignore file to list the files and folders that should be left out of your uploads.


🛠️ How to create the .zip

1

Open your project folder and select all of its contents (Ctrl + A).

2

Right-click the selection and choose Compress to ZIP file (Windows 11) or Send to > Compressed (zipped) folder (Windows 10).

3

Name the file, for example my-bot.zip.

1

Open your project folder in Finder and select all of its contents (Cmd + A).

2

Right-click the selection and choose Compress.

3

macOS creates an Archive.zip file. Rename it if you like, for example my-bot.zip.

In a terminal, inside your project folder, run:

The .zip is created in the parent folder, with the project contents right at its root. Use -x to leave out any other folders that don't need to be uploaded.


🔄 Updating an application

To change only a few files of an application that's already on Discloud, you don't need to upload the whole project again. See How to commit?.


❓ Still need help?

See Troubleshooting Solutions or join our Discord Server for support.

Last updated