Environment Variables - BitKnitting/should_I_water GitHub Wiki

I do not want to store:

  • email username/passwords
  • gmail oauth goo on GitHub.

To get around this:

  • For "production", I needed a way to pass environment variables into my systemd service file. Here's where I talk about using environment variables with systemd.
  • For test, I put the environment variables into a shell script (e.g.: set_env.sh). e.g.:
    export CLIENT_SECRET_FILE='client_secret.json'
    Then (here's the tricky part), instead of running the local script with ./, run it with .e.g.:
    . set_env.sh Run env to make sure the environment variables were set within the test session.