Specific variable for deployed version?

now that deployments are going to be used instead of Always On dev Repls, I will try to develop correctly.

How can I define a variable, or use a function, in Python, to know that I’m running on Dev (normal Repl) or on a Deployed Repl ? in order to change the database connection from dev to production for example.

Is there an easy way with Repl system or if not, how can I set a variable on the Deployment version only ?

You could use Secrets, as IIRC, they’re separate on normal and deployed.


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