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

docs: update deployment section titles and add new file #3

Merged
merged 1 commit into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,20 @@

如果你沒有這些訊息,你需要到 LINE Developer Portal 建立一個新的 channel 並獲取這些訊息。

## 部署在 Heroku
## 部署在雲端服務器

### 部署在 Heroku

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

- Input `Channel Secret` and `Channel Access Token`.
- Input [OpenAI API Key](https://platform.openai.com/account/api-keys) in `OPENAI_API_KEY`.
- Remember your heroku, ID.

### 部署在 Rener.com

[![Deploy to Render](http://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy)

## 運行

1. **啟動 FastAPI 應用程式**
Expand Down
16 changes: 16 additions & 0 deletions render.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
services:
# A Docker web service
- type: web
name: linebot-embedchain
runtime: python
plan: free
autoDeploy: false
buildCommand: pip install -r requirements.txt
startCommand: uvicorn main:app --host=0.0.0.0 --port=${PORT:-5000}
envVars:
- key: ChannelAccessToken
sync: false
- key: ChannelSecret
sync: false
- key: OPENAI_API_KEY
sync: false