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: 'Railway.app' |
| #3 | description: 'Deploy your RAG application to railway.app' |
| #4 | --- |
| #5 | |
| #6 | It's easy to host your Embedchain-powered apps and APIs on railway. |
| #7 | |
| #8 | Follow the instructions given below to deploy your first application quickly: |
| #9 | |
| #10 | ## Step-1: Create RAG app |
| #11 | |
| #12 | ```bash Install embedchain |
| #13 | pip install embedchain |
| #14 | ``` |
| #15 | |
| #16 | <Tip> |
| #17 | **Create a full stack app using Embedchain CLI** |
| #18 | |
| #19 | To use your hosted embedchain RAG app, you can easily set up a FastAPI server that can be used anywhere. |
| #20 | To easily set up a FastAPI server, check out [Get started with Full stack](https://docs.embedchain.ai/get-started/full-stack) page. |
| #21 | |
| #22 | Hosting this server on railway is super easy! |
| #23 | |
| #24 | </Tip> |
| #25 | |
| #26 | ## Step-2: Set up your project |
| #27 | |
| #28 | ### With Docker |
| #29 | |
| #30 | You can create a `Dockerfile` in the root of the project, with all the instructions. However, this method is sometimes slower in deployment. |
| #31 | |
| #32 | ### Without Docker |
| #33 | |
| #34 | By default, Railway uses Python 3.7. Embedchain requires the python version to be >3.9 in order to install. |
| #35 | |
| #36 | To fix this, create a `.python-version` file in the root directory of your project and specify the correct version |
| #37 | |
| #38 | ```bash .python-version |
| #39 | 3.10 |
| #40 | ``` |
| #41 | |
| #42 | You also need to create a `requirements.txt` file to specify the requirements. |
| #43 | |
| #44 | ```bash requirements.txt |
| #45 | python-dotenv |
| #46 | embedchain |
| #47 | fastapi==0.108.0 |
| #48 | uvicorn==0.25.0 |
| #49 | embedchain |
| #50 | beautifulsoup4 |
| #51 | sentence-transformers |
| #52 | ``` |
| #53 | |
| #54 | ## Step-3: Deploy to Railway 🚀 |
| #55 | |
| #56 | 1. Go to https://railway.app and create an account. |
| #57 | 2. Create a project by clicking on the "Start a new project" button |
| #58 | |
| #59 | ### With Github |
| #60 | |
| #61 | Select `Empty Project` or `Deploy from Github Repo`. |
| #62 | |
| #63 | You should be all set! |
| #64 | |
| #65 | ### Without Github |
| #66 | |
| #67 | You can also use the railway CLI to deploy your apps from the terminal, if you don't want to connect a git repository. |
| #68 | |
| #69 | To do this, just run this command in your terminal |
| #70 | |
| #71 | ```bash Install and set up railway CLI |
| #72 | npm i -g @railway/cli |
| #73 | railway login |
| #74 | railway link [projectID] |
| #75 | ``` |
| #76 | |
| #77 | Finally, run `railway up` to deploy your app. |
| #78 | ```bash Deploy |
| #79 | railway up |
| #80 | ``` |
| #81 | |
| #82 | ## Seeking help? |
| #83 | |
| #84 | If you run into issues with deployment, please feel free to reach out to us via any of the following methods: |
| #85 | |
| #86 | <Snippet file="get-help.mdx" /> |
| #87 |