Open dimkir opened 5 years ago
In development environment, feel free to configure everything within the
config/default.json:dev ...
config/default.json:dev
In development each url has it's own port
development
url: { tenant: dev.protocol + dev.domain + ':' + port.tenant + '/tenant', user: dev.protocol + dev.domain + ':' + port.user + '/user', product: dev.protocol + dev.domain + ':' + port.product + '/product', reg: dev.protocol + dev.domain + ':' + port.reg + '/reg', auth: dev.protocol + dev.domain + ':' + port.auth + '/auth', sys: dev.protocol + dev.domain + ':' + port.sys + '/sys', order: dev.protocol + dev.domain + ':' + port.order + '/order' }
You must set a number of environment variables:
AWS_REGION
SERVICE_URL
SNS_ROLE_ARN
AWS_ACCOUNT_ID
USER_TABLE
TENANT_TABLE
PRODUCT_TABLE
ORDER_TABLE
e
In production all services live at the same url (THERE IS NO PORT!)
production
url: { tenant: prod.protocol + process.env.SERVICE_URL + '/tenant', user: prod.protocol + process.env.SERVICE_URL + '/user', product: prod.protocol + process.env.SERVICE_URL + '/product', reg: prod.protocol + process.env.SERVICE_URL + '/reg', auth: prod.protocol + process.env.SERVICE_URL + '/auth', order: prod.protocol + process.env.SERVICE_URL + '/order', sys: prod.protocol + process.env.SERVICE_URL + '/sys' }
development
In development environment, feel free to configure everything within the
config/default.json:dev
...Setting service urls
In
development
each url has it's own portproduction
You must set a number of environment variables:
AWS_REGION
SERVICE_URL
SNS_ROLE_ARN
AWS_ACCOUNT_ID
(where is this used? why? in dev environment all seemed to work without specifying it?)USER_TABLE
TENANT_TABLE
PRODUCT_TABLE
ORDER_TABLE
e
e
e
e
Setting service urls
In
production
all services live at the same url (THERE IS NO PORT!)