sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.17k stars 216 forks source link

enironment variable to determine if you're "in cocalc" and which variant #5484

Open haraldschilly opened 3 years ago

haraldschilly commented 3 years ago

The purpose is to special-case scripts, to check if they run inside of CoCalc. What I have in mind is e.g.

COCALC_ENVIRONMENT=kucalc for cocalc.com, and similar =docker for docker, etc.

This variable must also be set when ssh-ing into the same project.

williamstein commented 3 years ago

This is a very good idea; especially making this an explicit part of our interface.