repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | --- |
| #2 | title: 'Render.com' |
| #3 | description: 'Deploy your RAG application to render.com platform' |
| #4 | --- |
| #5 | |
| #6 | Embedchain has a nice and simple abstraction on top of the [render.com](https://render.com/) tools to let developers deploy RAG application to render.com platform seamlessly. |
| #7 | |
| #8 | Follow the instructions given below to deploy your first application quickly: |
| #9 | |
| #10 | ## Step-1: Install `render` command line |
| #11 | |
| #12 | <CodeGroup> |
| #13 | ```bash OSX |
| #14 | brew tap render-oss/render |
| #15 | brew install render |
| #16 | ``` |
| #17 | |
| #18 | ```bash Linux |
| #19 | # Make sure you have deno installed -> https://docs.render.com/docs/cli#from-source-unsupported-operating-systems |
| #20 | git clone https://github.com/render-oss/render-cli |
| #21 | cd render-cli |
| #22 | make deps |
| #23 | deno task run |
| #24 | deno compile |
| #25 | ``` |
| #26 | |
| #27 | ```bash Windows |
| #28 | choco install rendercli |
| #29 | ``` |
| #30 | </CodeGroup> |
| #31 | |
| #32 | In case you run into issues, refer to official [render.com docs](https://docs.render.com/docs/cli). |
| #33 | |
| #34 | ## Step-2 Create RAG application: |
| #35 | |
| #36 | We provide a command line utility called `ec` in embedchain that inherits the template for `render.com` platform and help you deploy the app. Follow the instructions to create a render.com app using the template provided: |
| #37 | |
| #38 | |
| #39 | ```bash Create application |
| #40 | pip install embedchain |
| #41 | mkdir my-rag-app |
| #42 | ec create --template=render.com |
| #43 | ``` |
| #44 | |
| #45 | This `create` command will open a browser window and ask you to login to your render.com account and will generate a directory structure like this: |
| #46 | |
| #47 | ```bash |
| #48 | ├── app.py |
| #49 | ├── .env |
| #50 | ├── render.yaml |
| #51 | ├── embedchain.json |
| #52 | └── requirements.txt |
| #53 | ``` |
| #54 | |
| #55 | Feel free to edit the files as required. |
| #56 | - `app.py`: Contains API app code |
| #57 | - `.env`: Contains environment variables for production |
| #58 | - `render.yaml`: Contains render.com specific configuration for deployment (configure this according to your needs, follow [this](https://docs.render.com/docs/blueprint-spec) for more info) |
| #59 | - `embedchain.json`: Contains embedchain specific configuration for deployment (you don't need to configure this) |
| #60 | - `requirements.txt`: Contains python dependencies for your application |
| #61 | |
| #62 | ## Step-3: Test app locally |
| #63 | |
| #64 | You can run the app locally by simply doing: |
| #65 | |
| #66 | ```bash Run locally |
| #67 | pip install -r requirements.txt |
| #68 | ec dev |
| #69 | ``` |
| #70 | |
| #71 | ## Step-4: Deploy to render.com |
| #72 | |
| #73 | Before deploying to render.com, you only have to set up one thing. |
| #74 | |
| #75 | In the render.yaml file, make sure to modify the repo key by inserting the URL of your Git repository where your application will be hosted. You can create a repository from [GitHub](https://github.com) or [GitLab](https://gitlab.com/users/sign_in). |
| #76 | |
| #77 | After that, you're ready to deploy on render.com. |
| #78 | |
| #79 | ```bash Deploy app |
| #80 | ec deploy |
| #81 | ``` |
| #82 | |
| #83 | When you run this, it should open up your render dashboard and you can see the app being deployed. You can find your hosted link over there only. |
| #84 | |
| #85 | You can also check the logs, monitor app status etc on their dashboard by running command `render dashboard`. |
| #86 | |
| #87 | <img src="/images/fly_io.png" /> |
| #88 | |
| #89 | ## Seeking help? |
| #90 | |
| #91 | If you run into issues with deployment, please feel free to reach out to us via any of the following methods: |
| #92 | |
| #93 | <Snippet file="get-help.mdx" /> |
| #94 |