I have server on DigitalOcean and I use fabric for deploying my code. And my code is dependent on environment variables (flask config). I've faced one strange trouble today: on server in /root/.bashrc I've added next line
export CONFIG=/path/to/conf
And when I executing on remote console
>>> echo $CONFIG
>>> /path/to/conf # result, as it should be
But in fabfile I have a function
def show():
run("echo $CONFIG")
And it prints an empty string. WHY? Thanks in advance!