https://github.com/marktawa/strapi-railway
Deploy Strapi on Railway
https://github.com/marktawa/strapi-railway
deployment nodejs railway strapi
Last synced: over 1 year ago
JSON representation
Deploy Strapi on Railway
- Host: GitHub
- URL: https://github.com/marktawa/strapi-railway
- Owner: Marktawa
- License: mit
- Created: 2025-01-17T15:12:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-19T05:50:22.000Z (over 1 year ago)
- Last Synced: 2025-01-25T19:14:33.767Z (over 1 year ago)
- Topics: deployment, nodejs, railway, strapi
- Language: TypeScript
- Homepage: https://dev.to/markmunyaka
- Size: 566 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deploy Strapi on Railway

## Description
This repo contains the source code used in the tutorial [How to self-host Strapi on Railway](https://dev.to/markmunyaka)
## Pre-requisites
- Node.js installed on your dev machine. (v18 or v20) [Download and install Node.js using this link](https://nodejs.org/en/download)
- GitHub Account. [Create GitHub account here](https://github.com/join)
- GitHub CLI[Download and Install GitHub CLI here](https://cli.github.com)
- Railway Account. [Sign up for Railway here](https://railway.com/login)
- Railway CLI. [Download and Install Railway CLI here](https://github.com/railwayapp/cli)
## How to use repo
Open up your terminal and clone the repository.
```shell
git clone https://github.com/Marktawa/strapi-railway
```
Install dependencies.
```shell
cd strapi-railway/hello
```
```shell
npm install
```
Add environment variables
```shell
cp .env.example .env
```
Import data
```shell
npm run strapi import -- -f ../hello.tar.gz.enc
```
Run Strapi server
```shell
npm run develop
```
Visit `http://localhost:1337` in your browser.
## Author
Mark Munyaka
https://dev.to/markmunyaka