Promote error can't deploy

info: Creating Autoscale service - 2023-11-01T13:17:16.824Z
exec [sh -c run = \"main.py\] error=exit status 127
sh: 1: run: not found
sh: 1: run: not found

how do i get the deployment to work?

Hey, @sabrathird welcome to the forums!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code:

1 Like

Hey @sabrathird and welcome to the community!

Based on the error, what is happening is that the run command for the deployment is invalid; in sh, there is no command named run.

To fix this, in the hidden .replit file, change the line under [deployments] from this:

run = "sh -c run = \"main.py\""

to this:

run = "python main.py"
2 Likes