Skip to content

Commit

Permalink
add more details in railway deploy doc
Browse files Browse the repository at this point in the history
  • Loading branch information
RivuChk committed Jan 16, 2023
1 parent 697301f commit 43c3ffc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/pages/noty-api/deployment-railway.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ Whenever deployment is triggered, it executes Gradle task - `build` which will b
```gradle
build.finalizedBy(installDist)
```
Or use below code if you're using Gradle Kotlin DSL

```kotlin
tasks.getByName("build").finalizedBy("installDist")
```

### Create Procfile

Expand All @@ -32,6 +37,9 @@ web: application/build/install/application/bin/application

- Create a project on Railway.app (from GitHub).
- Configure deployment branch as `master` and directory `noty-api` (_as API source is in directory_).
- Add PostgreSQL Database service in Railway.app.
- Configure environment variables (_as seen in the above image_).
- Add PostgreSQL Database service in Railway.app. Steps below
- Go to https://railway.app/dashboard on a new tab
- Click on new project (or directly go to https://railway.app/new)
- Select `Provision PostgreSQL`
- Configure environment variables (_as seen in the above image_, you'll need to create `DATABASE_DRIVER`, `DATABASE_MAX_POOL_SIZE` and `SECRET_KEY` environment variables, rest will be created by railway once you add postgres).
- After this, just deploy and check whether everything is working fine.

0 comments on commit 43c3ffc

Please sign in to comment.