Skip to content

Commit

Permalink
chore: 다시 timezone 설정 - #132
Browse files Browse the repository at this point in the history
  • Loading branch information
hou27 committed Dec 2, 2022
1 parent 30d2974 commit cf641d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ COPY --from=builder /app ./
# Timezone setting

## install tzdata package for timezone setting
# RUN apk add tzdata && ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
RUN apk add tzdata && ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime

EXPOSE 4000
CMD npm run start:prod
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ services:
- .env.prod
environment:
POSTGRES_HOST_AUTH_METHOD: 'trust'
TZ: 'Asia/Seoul' # Timezone for OS
PGTZ: 'Asia/Seoul' # Timezone for postgres
ports:
- 5432:5432
networks:
Expand Down
2 changes: 2 additions & 0 deletions src/users/users.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ export class UsersService {
);
}

console.log(contents);

return {
contents,
};
Expand Down

0 comments on commit cf641d2

Please sign in to comment.