diff --git a/README.md b/README.md index bfbad6d..8919ef9 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,9 @@ 如果你沒有這些訊息,你需要到 LINE Developer Portal 建立一個新的 channel 並獲取這些訊息。 -## 部署在 Heroku +## 部署在雲端服務器 + +### 部署在 Heroku [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) @@ -31,6 +33,10 @@ - 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 應用程式** diff --git a/render.yaml b/render.yaml new file mode 100644 index 0000000..bb3580c --- /dev/null +++ b/render.yaml @@ -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 \ No newline at end of file