Unable to change how the RUN button works

Bug description:
I change the run key to streamlit run main.py but when I press the [RUN] button, it is still executing python main.py

Expected vs Current Behavior:
According to documentation, I am able to configure how the run button works by changing the run key

Steps to reproduce:

  1. Create a new repl.it
  2. Install streamlit and pandas
  3. See hidden files
  4. Change run key in .replit to streamlit run main.py

Bug appears at this link: https://replit.com/@ckunx/NumbYouthfulKeygenerator#.replit

Screenshot(s)/Screen Recording:

Browser/OS/Device: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Replit Profile: https://replit.com/@ckunx

1 Like

I’ve the same problem with this repl : https://replit.com/@cldprv/Ositaut
More in depth topic about my error : .replit file not updating - #3 by cldprv


Can you provide the contents of your .replit file? That Repl appears to be private.


Here’s my .replit file:

entrypoint = "main.py"
modules = ["python-3.10:v18-20230807-322e88b"]

hidden = [".pythonlibs"]

channel = "stable-23_05"

run = "streamlit run main.py"
deploymentTarget = "cloudrun"

I have also made my repl public.

1 Like

You changed the deployment run command, try copying that run command to the top of the file.