Compare commits
No commits in common. "b716c75a2cb25c46e95280cf5cd641a361c96bc1" and "1a2a37d185a34579e65f2d0f4471e4d6fe477bdf" have entirely different histories.
b716c75a2c
...
1a2a37d185
19
.drone.yml
19
.drone.yml
|
@ -14,22 +14,6 @@ steps:
|
|||
script:
|
||||
- cd /home/eigen/PROJECT/POS/POS.DEV/BE
|
||||
- sh build.sh
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/devel_*
|
||||
- refs/tags/*-alpha.*
|
||||
- name: build-production
|
||||
image: plugins/docker
|
||||
settings:
|
||||
registry: registry.eigen.co.id
|
||||
repo: registry.eigen.co.id/eigen/${DRONE_REPO_NAME}
|
||||
build_args:
|
||||
- env_target=env.production
|
||||
tags: ${DRONE_TAG}
|
||||
custom_dns: 172.10.10.16
|
||||
when:
|
||||
ref:
|
||||
- refs/tags/*-production.*
|
||||
- name: send-message
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
|
@ -43,6 +27,9 @@ steps:
|
|||
"message": "Build {{repo.name}} sudah selesai"
|
||||
}
|
||||
trigger:
|
||||
ref:
|
||||
- refs/tags/devel_*
|
||||
- refs/tags/*-alpha.*
|
||||
event:
|
||||
exclude:
|
||||
- promote
|
||||
|
|
|
@ -5,11 +5,11 @@ COPY . .
|
|||
RUN yarn install
|
||||
RUN yarn build
|
||||
FROM node:18.17-alpine
|
||||
# ARG env_target
|
||||
ARG env_target
|
||||
WORKDIR /app
|
||||
# RUN echo ${env_target}
|
||||
# COPY env/$env_target /app/.env
|
||||
# COPY --from=builder /app/env/$env_target .env
|
||||
RUN echo ${env_target}
|
||||
COPY env/$env_target /app/.env
|
||||
COPY --from=builder /app/env/$env_target .env
|
||||
COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY --from=builder /app/assets ./assets
|
||||
|
|
|
@ -100,6 +100,5 @@ import { TransactionDemographyModel } from 'src/modules/transaction/transaction/
|
|||
ItemDataService,
|
||||
CouchService,
|
||||
],
|
||||
exports: [CouchService],
|
||||
})
|
||||
export class CouchModule {}
|
||||
|
|
|
@ -23,14 +23,13 @@ export class CouchService {
|
|||
for (const database of DatabaseListen) {
|
||||
const db = nano.db.use(database);
|
||||
db.changesReader.start({ includeDocs: true }).on('change', (change) => {
|
||||
Logger.verbose(
|
||||
Logger.log(
|
||||
`Receive Data from ${database}: ${change?.id}`,
|
||||
'CouchService',
|
||||
);
|
||||
this.changeDoc(change, database);
|
||||
});
|
||||
|
||||
// transaction
|
||||
Logger.log(`start listen database ${database}`, 'CouchService');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,14 +14,13 @@ import { IndexVipCodeManager } from './domain/usecases/managers/index-vip-code.m
|
|||
import { VipCodeModel } from './data/models/vip-code.model';
|
||||
import { GenerateVipCodeManager } from './domain/usecases/managers/geneate-vip-code.manager';
|
||||
import { CreateVipCodeHandler } from './domain/usecases/handlers/create-vip-code.handler';
|
||||
import { CouchModule } from 'src/modules/configuration/couch/couch.module';
|
||||
import { CouchService } from 'src/modules/configuration/couch/data/services/couch.service';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
ConfigModule.forRoot(),
|
||||
TypeOrmModule.forFeature([VipCodeModel], CONNECTION_NAME.DEFAULT),
|
||||
CqrsModule,
|
||||
CouchModule,
|
||||
],
|
||||
controllers: [VipCodeDataController, VipCodeReadController],
|
||||
providers: [
|
||||
|
@ -31,6 +30,7 @@ import { CouchModule } from 'src/modules/configuration/couch/couch.module';
|
|||
CreateVipCodeManager,
|
||||
GenerateVipCodeManager,
|
||||
|
||||
CouchService,
|
||||
VipCodeDataService,
|
||||
VipCodeReadService,
|
||||
|
||||
|
|
Loading…
Reference in New Issue