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
File details
Details for the file daemondev_config_server-0.6.tar.gz
.
File metadata
- Download URL: daemondev_config_server-0.6.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de77b0b6f58844b47c4f87ceba54488bf005a6c1d0b3009209fe8ea4942509aa |
|
MD5 | 86730c74b00c753017863db275f4e48d |
|
BLAKE2b-256 | 92f89c544e6f13d3ad8033d33d67ed1c36063d2fff35e62737b3b793c9e06db1 |
File details
Details for the file daemondev_config_server-0.6-py3-none-any.whl
.
File metadata
- Download URL: daemondev_config_server-0.6-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb02910c4e44c96eb83c4c54df3229121146a488555f278b5e5e45e7723c8a64 |
|
MD5 | f0f4682cc5750b9cfdb8f0d524b6b34a |
|
BLAKE2b-256 | 43cd5a81299f169431c6d117a5e212f12e50d32a5223b15667f3254cf67ebb11 |