render



說明

  1. 免綁信用卡
  2. 運行限制:每月 750 hrs(單獨帳號計算)
  3. 待命期間:閒置 15m 會開始進入休眠
    • 喚醒時間:最久 30s
  4. 其他:免費帳號若執行太久,會不定期被重開機

    https://bamorlove.com/blog/render


影片版

聯動專案來部屬

假如卡住

  • 如果看到 JSON Server is running,卻還卡在 in progress

預先準備

Step-0_註冊帳號

https://dashboard.render.com/register

Step-1_專案範例

Step-1.1_FORK

  • Fork 老師的範例到自己的帳號

https://github.com/gonsakon/json-server-vercel

Step-1.2

  • 修改 db.json 為自己的資料

Step-2

Step-2.1

  • New Web Service
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

Step-2.2

  • Connect GitHub
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

Step3

Step3.1

  • 填寫項目
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  1. Name
    • 專案的名字
  2. Region
    • 主機位置
  3. Branch
    • 要部屬的分支,通常是 mainmaster

Step3.2

  • 剩下可以預設值,接著到最底下按鈕
    • Create Web Service
      Image Not Showing Possible Reasons
      • The image file may be corrupted
      • The server hosting the image is unavailable
      • The image path is incorrect
      • The image format is not supported
      Learn More →

Step4

  • 如果看到 JSON Server is running ,卻還在 in progress

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Step4.1

  • Manual Deploy >
    • Deploy specific commit

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Step4.2

  • 選擇最上面最新的 commmit

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

END

  • 部屬成功會出現綠色 Live

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →



相關資料

https://yeecord.com/blog/heroku-end-free-tier/

https://editor.leonh.space/2022/render/

https://ithelp.ithome.com.tw/articles/10255630