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:
+2 -2
View File
@@ -117,7 +117,7 @@ export const generatedEditDates = {
"app/contribution-guidelines/docs/page.mdx": "2024-10-16T15:48:04.071Z",
"app/create-medusa-app/page.mdx": "2024-08-05T11:10:55+03:00",
"app/deployment/admin/vercel/page.mdx": "2024-10-16T08:10:29.377Z",
"app/deployment/medusa-application/railway/page.mdx": "2024-10-22T11:02:09.029Z",
"app/deployment/medusa-application/railway/page.mdx": "2024-11-11T11:50:10.517Z",
"app/deployment/storefront/vercel/page.mdx": "2024-07-26T07:21:31+00:00",
"app/deployment/page.mdx": "2024-07-25T09:55:22+03:00",
"app/integrations/page.mdx": "2024-10-15T12:26:39.839Z",
@@ -2276,7 +2276,7 @@ export const generatedEditDates = {
"app/commerce-modules/stock-location/links-to-other-modules/page.mdx": "2024-10-15T14:33:11.483Z",
"app/commerce-modules/store/links-to-other-modules/page.mdx": "2024-06-26T07:19:49.931Z",
"app/examples/page.mdx": "2024-10-16T15:47:38.345Z",
"app/medusa-cli/commands/build/page.mdx": "2024-10-16T08:16:27.618Z",
"app/medusa-cli/commands/build/page.mdx": "2024-11-11T11:00:49.665Z",
"app/js-sdk/page.mdx": "2024-10-16T12:12:34.512Z",
"references/js_sdk/admin/Admin/properties/js_sdk.admin.Admin.apiKey/page.mdx": "2024-10-25T15:35:28.397Z",
"references/js_sdk/admin/Admin/properties/js_sdk.admin.Admin.campaign/page.mdx": "2024-10-25T15:35:28.465Z",
+8 -1
View File
@@ -9066,8 +9066,15 @@ export const generatedSidebar = [
"isPathHref": true,
"type": "category",
"title": "Medusa Application",
"autogenerate_path": "/deployment/medusa-application",
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "link",
"path": "https://docs.medusajs.com/learn/deployment/general",
"title": "General",
"children": []
},
{
"loaded": true,
"isPathHref": true,
+12 -1
View File
@@ -2100,7 +2100,18 @@ export const sidebar = sidebarAttachHrefCommonOptions([
{
type: "category",
title: "Medusa Application",
autogenerate_path: "/deployment/medusa-application",
children: [
{
type: "link",
path: "https://docs.medusajs.com/learn/deployment/general",
title: "General"
},
{
type: "link",
path: "/deployment/medusa-application/railway",
title: "Railway"
},
],
},
{
type: "category",