Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
chore: update docker config
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Dec 6, 2022
1 parent 562fdd1 commit d4ae482
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 15 deletions.
7 changes: 0 additions & 7 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ MYSQL_USERNAME=root
MYSQL_DATABASE=eoapi
MYSQL_PASSWORD=123456a.
MYSQL_ROOT_PASSWORD=123456a.

# swagger
SWAGGER_PATH=swagger-docs
SWAGGER_ENABLE=true
SWAGGER_VERSION=1.0
SWAGGER_TITLE=Eoapi-remote-server API文档
SWAGGER_DESC=Eoapi remote server API document。

# other
# eoapi web服务端口
Expand Down
6 changes: 0 additions & 6 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ services:
max_attempts: 10
env_file:
- .env
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '${EOAPI_SERVER_PORT}:${EOAPI_SERVER_PORT}'
networks:
Expand Down Expand Up @@ -43,8 +41,6 @@ services:
restart_policy:
condition: on-failure
max_attempts: 3
extra_hosts:
- 'host.docker.internal:host-gateway'
env_file:
- .env
ports:
Expand All @@ -63,8 +59,6 @@ services:
max_attempts: 3
env_file:
- .env
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '${EOAPI_TEST_SERVER_PORT}:4201'
- '${EOAPI_WEBSOCKET_POST}:4202'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eoapi-remote-server",
"version": "1.9.2",
"version": "1.10.0",
"description": "Storage api data in remote server",
"author": "eoapi",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function bootstrap() {
await app.listen(process.env.EOAPI_SERVER_PORT, '0.0.0.0');
const serverUrl = await app.getUrl();
Logger.log(`api服务已经启动,请访问: ${serverUrl}`);
Logger.log(`API文档已生成,请访问: ${serverUrl}/${process.env.SWAGGER_PATH}/`);
// Logger.log(`API文档已生成,请访问: ${serverUrl}/${process.env.SWAGGER_PATH}/`);
}

bootstrap();
1 change: 1 addition & 0 deletions src/modules/workspace/apiData/apiData.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export class ApiDataService {
) {}

async create(createDto: CreateDto) {
Reflect.deleteProperty(createDto, 'uuid');
const project = await this.projectRepository.findOneBy({
uuid: createDto.projectID,
});
Expand Down
1 change: 1 addition & 0 deletions src/modules/workspace/apiGroup/apiGroup.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export class ApiGroupService {
) {}

async create(createDto: CreateDto) {
Reflect.deleteProperty(createDto, 'uuid');
const project = await this.projectRepository.findOneBy({
uuid: createDto.projectID,
});
Expand Down

0 comments on commit d4ae482

Please sign in to comment.