Dépannage
Cette page n'a pas encore été traduite en français, elle est donc affichée en anglais.
Don't upload your dependencies
Why node_modules and venv folders break things, and what to do instead.
Folders like node_modules and venv hold the packages your code uses. They’re built for the computer they were installed on. Copied to a server, they often break - and they’re huge, so uploading them is slow and eats your storage.
What to leave out
| Language | Leave out |
|---|---|
| Node.js / Bun | node_modules |
| Python | venv, .venv, env, __pycache__ |
| Rust | target |
| Any | .git, and anything your editor made (.vscode, .idea) |
What to do instead
Upload your dependency list, and let the server install from it:
- Make sure it’s up to date:
package.jsonfor Node.js,requirements.txtfor Python,Cargo.toml,go.modand so on. - Upload your files without the folders above.
- On Settings, click Install deps.
Already uploaded them?
- On the Files tab, tick the
node_modules(orvenv) folder and click Delete selected. - Click Install deps on Settings.
- Press Start.
AstucePython: make a
requirements.txtfrom the packages you use withpip freeze > requirements.txt, then remove anything your bot doesn’t need.