Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

daemondev_config_server-0.6.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

daemondev_config_server-0.6-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page