docs: added + updated build and deployment guides (#10019)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-11-13 14:44:36 +02:00
1 parent b6775f894a
commit 6f7467f071
11 files changed
+476 -13

No files matched your search

@@ -2,7 +2,7 @@
sidebar_label: "Railway"
---
import { Prerequisites, DetailsList } from "docs-ui"
import { Prerequisites } from "docs-ui"
export const metadata = {
title: `Deploy Medusa Application to Railway`,
@@ -82,6 +82,14 @@ Later, you’ll set different values of the `DISABLE_MEDUSA_ADMIN` environment v
### Configure Redis URL
The `redisUrl` configuration specifies the connection URL to Redis to store the Medusa server's session.
<Note>
Learn more in the [Medusa Configuration documentation](/references/medusa-config#redisurl).
</Note>
Add the following configuration in `medusa-config.ts` :
```ts title="medusa-config.ts"
@@ -66,7 +66,13 @@ cd .medusa/server && npm install
- When running the application locally, make sure to copy the `.env` file from the root project's directory. In production, use system environment variables instead.
```bash npm2yarn
cp .env .medusa/server
cp .env .medusa/server/.env.production
```
- In the system environment variables, set `NODE_ENV` to `production`:
```bash
NODE_ENV=production
```
- Use the `start` command to run the application: