-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #218 from pnnl/merging_workflows
Merging all workflows into one app
- Loading branch information
Showing
4 changed files
with
16 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,6 @@ | ||
/** | ||
* Define the database name based on the deployment environment configured in AWS S3. | ||
* | ||
* When deploying the application to AWS S3, the environment variable 'REACT_APP_ENV' | ||
* is set to 'quality-install-tool' or 'ira-quality-install-tool' for the respective applications. | ||
* | ||
* The environment variable can be accessed in code using the `process.env` object, | ||
* which will be populated with the specified value during the build process. | ||
* | ||
* For Local dev environment, the env variable REACT_APP_ENV is set in 'package.json' | ||
* in start script as below | ||
* "scripts": { | ||
"start": "HTTPS=true REACT_APP_ENV=ira-quality-install-tool node scripts/start.js", | ||
.... | ||
* | ||
* | ||
* This `DBName` constant exports the value of `process.env.REACT_APP_ENV`, which will | ||
* determine the PouchDB database name created in the browser. | ||
* | ||
* Example usage in code: | ||
* | ||
* import DBName from './db_details'; | ||
* console.log(`Using database: ${DBName}`); // Output will depend on the environment variable 'REACT_APP_ENV' set in the AWS S3 deployment. | ||
* | ||
* Respective DBName exported are ('quality-install-tool' or 'ira-quality-install-tool'). | ||
* Define the database name | ||
*/ | ||
|
||
const DBName = process.env.REACT_APP_ENV | ||
const DBName = 'quality-install-tool' | ||
export default DBName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters