KarrLab / datanator_frontend

Graphical web-based interface for the Datanator toolkit for discovering data for modeling cells
https://datanator.info
MIT License
1 stars 1 forks source link

Test preview sites should use testapi.datanator.info for API calls #271

Closed lzy7071 closed 4 years ago

lzy7071 commented 4 years ago

Example

jonrkarr commented 4 years ago

The REST API endpoint is controlled via the .env* files.

To use testapi.datanator.info, the NODE_ENV environment variable should be set to test or development. This should be set when the "preview" sites are deployed.

lzy7071 commented 4 years ago

Got it.

What about for production server?

jonrkarr commented 4 years ago

NODE_ENV=production maps to the configuration in the .env file. Under production mode, the frontend will use api.datanator.info.