Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

NODE_ENV setting is ignored by dockerStart.sh of data-portal #25

@taoliu

Description

@taoliu

- NODE_ENV=dev

The above code will set the NODE_ENV to "dev" in docker-compose.yml, however, this setting is ignored later on by data-portal. When "waitForContainers.sh" is called:

command: ["bash", "/var/www/data-portal/waitForContainers.sh"]

The script invokes "dockerStart.sh" in data-portal:

bash ./dockerStart.sh

The dockerStart.sh will reset NODE_ENV as "production":

https://github.com/uc-cdis/data-portal/blob/c211f476f4ebacfe03b36bf471fb910e72aa81b4/dockerStart.sh#L8

export NODE_ENV=production

The consequence is that the NODE_ENV setting in compose-service is ignored.

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