refactor: update port mappings to 8068, enhance deployment configurations, and modify health check response
This commit is contained in:
parent
f66fd4271f
commit
f55d0da72d
|
|
@ -20,5 +20,5 @@ COPY --from=builder /app/dist ./dist
|
||||||
COPY --from=builder /app/package*.json ./
|
COPY --from=builder /app/package*.json ./
|
||||||
COPY --from=builder /app/node_modules ./node_modules
|
COPY --from=builder /app/node_modules ./node_modules
|
||||||
|
|
||||||
EXPOSE 8066
|
EXPOSE 8068
|
||||||
CMD ["npm", "run", "start:prod"]
|
CMD ["npm", "run", "start:prod"]
|
||||||
|
|
@ -4,20 +4,15 @@ services:
|
||||||
vendaweb-api:
|
vendaweb-api:
|
||||||
image: 10.1.1.124:8082/library/vendaweb-api:latest
|
image: 10.1.1.124:8082/library/vendaweb-api:latest
|
||||||
ports:
|
ports:
|
||||||
- target: 8066
|
- "8068:8068"
|
||||||
published: 8066
|
|
||||||
protocol: tcp
|
|
||||||
mode: host
|
|
||||||
networks:
|
networks:
|
||||||
- juru-network
|
- simplifique-network
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 4
|
||||||
update_config:
|
update_config:
|
||||||
order: stop-first
|
order: start-first
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
failure_action: rollback
|
|
||||||
delay: 5s
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
juru-network:
|
simplifique-network:
|
||||||
external: true
|
external: true
|
||||||
|
|
@ -14,7 +14,7 @@ export class AppController {
|
||||||
@Get('health')
|
@Get('health')
|
||||||
@ApiOperation({ summary: 'Health check' })
|
@ApiOperation({ summary: 'Health check' })
|
||||||
healthCheck() {
|
healthCheck() {
|
||||||
return { status: ':ok 3 ' };
|
return { status: ':Jurunense homecenter ' };
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,12 +7,12 @@ export const typeOrmConfig: TypeOrmModuleOptions = {
|
||||||
// username: "LIVIA",
|
// username: "LIVIA",
|
||||||
// password: "LIVIA",
|
// password: "LIVIA",
|
||||||
host: "10.1.1.241",
|
host: "10.1.1.241",
|
||||||
username: "SEVEN",
|
username: "teste",
|
||||||
password: "USR54SEV",
|
password: "teste",
|
||||||
// username: "API",
|
// username: "API",
|
||||||
// password: "E05H5KIEQV3YKDJR",
|
// password: "E05H5KIEQV3YKDJR",
|
||||||
port: 1521,
|
port: 1521,
|
||||||
sid: "WINT",
|
sid: "BDTESTE",
|
||||||
synchronize: false,
|
synchronize: false,
|
||||||
logging: false,
|
logging: false,
|
||||||
entities: [__dirname + '/../**/*.entity.{js,ts}'],
|
entities: [__dirname + '/../**/*.entity.{js,ts}'],
|
||||||
|
|
@ -22,10 +22,10 @@ export const typeOrmConfig: TypeOrmModuleOptions = {
|
||||||
export const connectionOptions: ConnectionOptions = {
|
export const connectionOptions: ConnectionOptions = {
|
||||||
type: "oracle",
|
type: "oracle",
|
||||||
host: "10.1.1.241",
|
host: "10.1.1.241",
|
||||||
username: "SEVEN",
|
username: "teste",
|
||||||
password: "USR54SEV",
|
password: "teste",
|
||||||
port: 1521,
|
port: 1521,
|
||||||
sid: "WINT",
|
sid: "BDTESTE",
|
||||||
synchronize: false,
|
synchronize: false,
|
||||||
logging: false,
|
logging: false,
|
||||||
entities: [__dirname + '/../**/*.entity.{js,ts}'],
|
entities: [__dirname + '/../**/*.entity.{js,ts}'],
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,6 @@ async function bootstrap() {
|
||||||
.build();
|
.build();
|
||||||
const document = SwaggerModule.createDocument(app, options);
|
const document = SwaggerModule.createDocument(app, options);
|
||||||
SwaggerModule.setup("docs", app, document);
|
SwaggerModule.setup("docs", app, document);
|
||||||
await app.listen(8066, '0.0.0.0');}
|
await app.listen(8068, '0.0.0.0');}
|
||||||
console.log('API rodando na porta 8066 test 3');
|
console.log('API rodando na porta 8066 test 3');
|
||||||
bootstrap();
|
bootstrap();
|
||||||
|
|
|
||||||
|
|
@ -1503,6 +1503,7 @@ export class SalesService {
|
||||||
|
|
||||||
async calculateDeliveryTaxOrder(dataDeliveryTax: any) {
|
async calculateDeliveryTaxOrder(dataDeliveryTax: any) {
|
||||||
let cityId = await this.customerService.findCity(dataDeliveryTax.ibgeCode);
|
let cityId = await this.customerService.findCity(dataDeliveryTax.ibgeCode);
|
||||||
|
|
||||||
await this.updatePriorityDelivery(dataDeliveryTax.cartId, dataDeliveryTax.priorityDelivery);
|
await this.updatePriorityDelivery(dataDeliveryTax.cartId, dataDeliveryTax.priorityDelivery);
|
||||||
|
|
||||||
if (cityId == 0) {
|
if (cityId == 0) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue