equinor / flotilla

Flotilla is the main point of access for operators to interact with multiple robots in a facility.
Eclipse Public License 2.0
16 stars 38 forks source link

Reading DevUserId from .env file does not work #1322

Closed oysand closed 9 months ago

oysand commented 10 months ago

Describe the bug When setting DevUserId in the .env file in the backend folder it is not read in. This is apparent as the singalR messages does not reach the frontend with updates. To get it to work I needed to edit the environment variable in the appsettings.local file.

To Reproduce Add Local__DevUserId='some-name' into the .env file at the backend folder. Run the system from a terminal and schedule a mission. Check if the updates are automatic or if you need to refresh the page to see updates.

Expected behavior Expect that one can add the environment variable to the .env file.

Screenshots If applicable, add screenshots to help explain your problem.

andchiind commented 10 months ago

It works everytime when using the environment variables in the launch.json file for vscode. This is not a solution, I am just pointing out that it is odd that there is a difference. It might be that the variables in the normal .env files are being ignored in preference for some other set of environment variables.