R
Railway10mo ago
Rashid

Deployment failed

The project was running smoothly but once I redeployed, it stopped working Project ID: af5712a6-cd8f-4b70-93f8-1f0cace28d1d
6 Replies
Percy
Percy10mo ago
Project ID: af5712a6-cd8f-4b70-93f8-1f0cace28d1d
Fragly
Fragly10mo ago
Isolated VM requires python to function You'll need to install python along with nodejs in your app you can do this by adding a nixpacks.toml file in your app's root with the following content:
providers = ['...', 'python']
providers = ['...', 'python']
this instructs nixpacks to use whatever it thinks your app needs ( nodejs in this case ) along with python
Brody
Brody10mo ago
we don't necessarily want to tack on an entirely new provider, the more minimal approach of installing only the needed python nix package is often times going to work and not bloat the image as much as adding an entirely different provider to the image adding just python 3.8 to the image would look like this in a nixpacks.toml file
[phases.setup]
nixPkgs = ['...', 'python38']
[phases.setup]
nixPkgs = ['...', 'python38']
you could of course need some other things the python provider installs, but it's better to start minimal first
Rashid
Rashid10mo ago
Thank you so much for your help 1010 @Fragly @Brody
Want results from more Discord servers?
Add your server