Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[功能開發] 修改開發時 yml #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

frohman-chang
Copy link
Collaborator

修改開發 yml 使開發更順暢

  1. docker-compose.dev.yml 新增 command。
  2. 修改 ts-node 報錯 "Server is not a generic"。

@@ -27,13 +27,16 @@ pnpm install
pnpm dev:frontend
```

## 前後端一起啟動
檢查 localhost:300 是否正常
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Port 需要改成 3000

pnpm install

pnpm dev
docker compose -f docker-compose.dev.yml u
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker compose -f docker-compose.dev.yml u 少了一個 p
完整指令應該是
docker compose -f docker-compose.dev.yml up

"build": "tsc -p tsconfig.prod.json",
"dev": "nodemon",
"dev": "npx ts-node main.ts",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我 docker 起來後,後端程式碼啟動會報錯誤 @@

image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

另外 CI/CD 似乎 build 不起來

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我這邊 後端程式碼啟動 沒有報錯 🤔 為什麼~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants