Is it possible to use shell to interact with the deployed code?

I have two files for my telegram bot
setup.py
this file i need to run manually as it requires otp code to be entered
bot.py
this file will run always
so, is it possible to interact with the deployed code so that i can run setup.py through shell itself?

Hi,

This appears to be a duplicate of your other topic: https://community.render.com/t/telegram-bot-issue-requires-terminal-to-run-the-setup-file/21058/3

As I mentioned in that topic, your code must be able to do its setup during a build unattended/non-interactive.

The “Shell” tab is a view into a running instance, so you can’t access a shell until you have a successful deploy. The “Shell” tab also requires paid instance type.

You’ll need to find a way to automate your deploy process or be able to get and set any required tokens/codes etc as an environment variable before the build on Render.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.