Hello!
I need help regarding Streamlit Setup on Python Manager [Specially since I am doing it for a client who liked aapanel in first view and might move to it]
Any streamlit file needs to be run with these commands
streamlit run script_name.py
or
python2 -m streamlit run script_name.py
So I need something like is for my init.d config
cd /www/streamlittest/ || exit
source /www/streamlittest/md5_venv/bin/activate
nohup streamlit run /www/streamlittest/streamlitmain.py >> /www/streamlittest/logs/error.log 2>&1 &
Consider, I have the correct files at correct place, but even if I paste this exact thing on Command
it gets replaced with
cd /www/v2streamlit/ && nohup sudo -u www /www/streamlittest/md5_venv/bin/python -u /www/streamlittest/streamlitmain.py >> /www/v2streamlit//logs/error.log 2>&1 &
If I manually change the file, it works, but upon restart it doesn't anymore.
I would really appreciate if anyone from the team can look into it.