Skip to content

Commit

Permalink
chore: githubAction, docker, typeorm 설정수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SeongHyeon0409 authored and SeungGwan123 committed Nov 7, 2024
1 parent 9ef50e0 commit 040d2ca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '20.x'

- name: Install yarn
run: npm install -g yarn

- name: Docker Hub login
uses: docker/login-action@v1
Expand Down
12 changes: 0 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
services:
# db:
# image: mysql:5.7
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: mydb
# MYSQL_USER: user
# MYSQL_PASSWORD: password
# volumes:
# - db-data:/var/lib/mysql
# networks:
# - app-network

server:
build:
context: .
Expand Down
4 changes: 2 additions & 2 deletions packages/server/src/configs/typeorm.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { TypeOrmModuleOptions } from '@nestjs/typeorm';
import { config } from 'dotenv';
import * as path from 'path';
import { resolve } from 'path';
import { createTunnel } from 'tunnel-ssh';

const env = process.env.NODE_ENV || 'development';
const envFileName = `.env.${env}`;
const envPath = path.resolve(process.cwd(), envFileName);
const envPath = resolve(process.cwd(), envFileName);

config({ path: envPath });

Expand Down

0 comments on commit 040d2ca

Please sign in to comment.