Allow non-default configuration location
See original GitHub issueI’d like to have the ability to pass my API configuration rather than putting it in [app-root]/data/strava_config
or env properties.
Ideally I would like to be able to pass a configuration object to the API. That would allow me to parse the configuration however I want and not have to add to my ever growing list of env props. If this is something that seems reasonable I can spend some time to create / submit a PR?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:4
- Comments:5
Top Results From Across the Web
Non-default location for ssh config file in Linux
Specifies an alternative per-user configuration file. If a configuration file is given on the command line, the system-wide configuration file ...
Read more >Configuration of the My Documents folder
By default, the My Documents folder is a folder in the user's profile that is used as a default storage location for saved...
Read more >Git - git-config Documentation
Opens an editor to modify the specified config file; either --system , --global , or repository (default). --[no-]includes. Respect include.* directives in ...
Read more >User and Workspace Settings - Visual Studio Code
Settings file locations Depending on your platform, the user settings file is located here: Windows %APPDATA%\Code\User\settings.json. macOS $HOME/Library/ ...
Read more >Configuration — yamllint 1.28.0 documentation - Read the Docs
Finally if no config file is found, the default configuration is applied. Default configuration¶. Unless told otherwise, yamllint uses its default configuration ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I ran into this today, my dir structure has node_modules two levels up from my server.js. I also already had a config file that was imported into my server.js file for such things. What I ended up doing was adding the following in my server.js file which still allows the options on the command line (it’s a bit ugly but it works fine):
For example, my config.js file looks like this:
Figured this might help the next person. Cheers
The location is relative to your projects root directory (the modules
data/
dir is provided for reference), but I agree this ought to be configurable according to the developers wishes.