Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global variable management #3

Open
PoorBillyPilgrim opened this issue Oct 2, 2021 · 2 comments
Open

Global variable management #3

PoorBillyPilgrim opened this issue Oct 2, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@PoorBillyPilgrim
Copy link
Owner

Devise a strategy for managing the main variables for the IIIF research environment. For the metadata -> image -> manifest -> viewer pipeline, I need to define a consistent manner for the server ecosystem. The likely best strategy is to create a ENV

Create a config/env file for managing locations for

  1. image server
  2. manifest server
  3. collection src
@PoorBillyPilgrim PoorBillyPilgrim added the enhancement New feature or request label Oct 7, 2021
@PoorBillyPilgrim
Copy link
Owner Author

Implement global variable control using dotenv

@PoorBillyPilgrim
Copy link
Owner Author

In order for dotenv to work with import, you can preload dotenv/config by running it from the command line. Be sure to run it from the same folder that node_modules is located. So, for example, since buildManifest.js is located in src, then the command would look like node --require dotenv/config src/buildManifest.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant