1.5.0 • Published 6 years ago
@chile-sh/jobs-common v1.5.0
jobs-common
Common helpers, configs, and constants used across the Jobs project
Install
yarn add @chile-sh/jobs-commonEnv variables
PG_HOST, PG_USER, and PG_PASS are required to run migrations.
Other env variables should be inherited from outside.
NODE_ENV=development
RMQ_HOST=rabbitmq
RMQ_USER=admin
RMQ_PASS=admin
PG_HOST=postgres
PG_USER=postgres
PG_PASS=postgres
REDIS_HOST=redis
REDIS_PASS=redis
SENTRY_DSN=https://...@sentry.io/1234DigitalOcean Spaces
mkdir ~/.aws && touch ~/.aws/credentialsEdit the credentials file with your access and secret keys:
nano ~/.aws/credentials[default]
aws_access_key_id=...
aws_secret_access_key=...Database
Use knex with:
yarn knexe.g:
yarn knex seed:make getonbrd -x ts # use TypeScriptMigrations
yarn db:migrate && yarn db:seed
yarn db:rollbackDevelopment
yarn global add yalc
yarn build && yalc publishThen, on the external project:
yalc link @chile-sh/jobs-commonLicense
GNU General Public License v3.0