I have used the requirements.txt file to install the packages i need for a Web Service. Doing this locally on my machine, or on online virtual environments, meant doing ‘pip installs’ one by one. Which was good as some of the packages require configuration. On Render.com it appears to be completely automated through the requirements.txt file.
Is there a console available where i can install the packages one by one and do the configurations i need on the 1-2 AWS packages that are being utilised?
The “Shell” tab is available on paid instances, which will give you access to a running instance, but this wouldn’t be the place to do any build-related setup.
Render instances have an ephemeral filesystem, meaning any file written to the instance after it has booted will be lost when it next restarts (e.g. spun down if on free instance type, next deploy, manual restart, etc.).
Any dependency setup would need to be done as part of the Build Command. If your build is more complex, you could create and run a shell script to set up whatever your project requires, however, that script must be not require any manual interaction. Builds are not interactive.
Thanks for your reply. In my case, the requirements.txt file seems to install everything i need. What i need to do, is just get to a console where i can “tap into” that environment and configure one of the AWS packages that’s already installed. It’s about 5 lines of input. I’m currently using a free instance, but if the “Shell” tab allows me the access to that environment, then of course i’m happy to upgrade. I’m assuming that also on a paid tier, it’s not spun down every 15mins of so.
If this is possible, is there also a guide on the commands/code needed to navigate to this environment?
As I said, the Shell tab likely won’t do what you expect due to the ephemeral filesystem. I would expect the AWS package can be configured in some way without manual intervention.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.