Config-Files downloader
Project description
Requirements
- require .env file with these contents
CONFIG_SERVER=localhost | config.wecourier4u.com
CONFIG_SCHEMA=https | http
CONFIG_USERNAME=xxx
CONFIG_PASSWORD=xxxxxxxxxxxxxxxxxxxxxxxx
ENVIRONMENT=local | production
LOCAL_CONFIG_DIR=/path/to/my/config-files/repo/dir #Optional
DEBUG=1 #Optional
- (Optional): create .configserver file in root project and set LOCAL_CONFIG_DIR
- (Optional): export GLOBAL_CONFIG_DIR in your .*rc file
#~/.bashrc
export GLOBAL_CONFIG_DIR=/path/to/config-files/dir
#$PROJECT_ROOT/.configserver
LOCAL_CONFIG_DIR=/path/to/config-files/dir
- Append this commands to package.json in
scripts
section
#package.json
...
"install": "docker run -it --rm --name nest -v $(pwd):/app node:14.19-alpine3.14 sh -c 'cd /app && npm install'",
"docker": "docker run -it --rm --name nest -p ${PORT:-3000}:${PORT:-3000} -e PORT=${PORT} -v ${GLOBAL_CONFIG_DIR}:/app/config-files -e DEBUG=${DEBUG} -v $(pwd):/app node:14.19-alpine3.14 sh -c 'cd /app && npm run start'",
...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for daemondev_config_server-0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5972bb56bc95875c9d181f7fb1ca75014167f84d81b0b7e13b4d42ae9073e45d |
|
MD5 | 33e48a3752239b6c14ba46b59689f0c5 |
|
BLAKE2b-256 | 17c0ba1f51952d8649ee5924d84c164fc1a9ca5a0d9db61e5e24f0d793541896 |
Close
Hashes for daemondev_config_server-0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed1fce98751a273af6fa8715607e090977af3d70573ec87902465a17eb9ae138 |
|
MD5 | b30437f039a88bf449ded379fa70f5bc |
|
BLAKE2b-256 | 2952c49cec6227fdd581252ca334d4452173646f09dd749616724b1eb74fe259 |