4

I'm using pycharm remote execution to run scripts on a remote server. I saw that bash_profile (or other start up scripts) aren't executed - is there a way to make this happen?

preferably not in 'run configurations' which are needed for each script (I have many scripts) but in a shared configuration

Ophir Yoktan
  • 8,149
  • 7
  • 58
  • 106
  • I have the same problem and I'm very surprised that your question hasn't been answered or commented on at all for nearly 7 months. Is this problem really that uncommon? – Ray Jul 28 '16 at 13:24

1 Answers1

0

The problem isn't actually related with Pycharm.

You must add your environment variable to remote machine ~/.bashrc

VAR="VALUE"
export VAR

You can read the from Why does an SSH remote command get fewer environment variables then when run manually?

if you use Vagrant you can use this too

Community
  • 1
  • 1
mcolak
  • 609
  • 1
  • 7
  • 13