Skip to content

Copernicus environment variables not being read from .env file #38

@GilesFearon

Description

@GilesFearon

I was having another go at downloading mercator data from the toolkit cli i.e. following the Algoa Bay operational model example in the toolkit docs, at step 3. I have COPERNICUS_PASSWORD and COPERNICUS_USERNAME defined in $SOMISANA_DIR/.env as provided in the docs. It only works if I export these manually in my shell environment (or add them to my .bashrc), but my understanding is that it should be read from the .env file.

By the way, I also tried defining these in the .env file in the toolkit dir in the source code (but same result). This actually got me wondering if we need these multiple .env files? They should probably be defined in the temp working dir to keep them out of the source code right?

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