Skip to content

Not picking up env variable #395

@songz

Description

@songz

Describe the bug
When I've setup an env variable for ADMIN in ~/.bashrc as root, then source ~/.bashrc, I verified that my env ADMIN variable exists by typing echo $ADMIN. But when I run npm run server, I get the error that says, 'please set ADMIN env variable`.

To Reproduce
Steps to reproduce the behavior:

  1. Get fresh server from digital ocean.
  2. vim ~/.bashrc
  3. Add ADMIN=....
  4. Load your env variables by doing source ~/.bashrc
  5. Install myproxy, run server without ADMIN env variable. You will get error.

Expected behavior
I expect the environment variable to get picked up. and not throw the error.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions