mirror of
https://github.com/openshiporg/openship.git
synced 2026-06-19 07:35:55 +00:00
fix: update build and start commands in package.json and add railway.toml for deployment configuration
This commit is contained in:
+2
-2
@@ -4,8 +4,8 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "keystone build --no-ui && npm run migrate && next dev",
|
||||
"build": "keystone build --no-ui && next build",
|
||||
"start": "npm run migrate && next start",
|
||||
"build": "keystone build --no-ui && npm run migrate && next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
"migrate:gen": "keystone build --no-ui && tsx features/keystone/view-order/generate-view-order.ts && keystone prisma migrate dev",
|
||||
"migrate": "prisma migrate deploy"
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# Railway can't access internal databases during build, so we move
|
||||
# npm run migrate from build to start command
|
||||
[build]
|
||||
buildCommand = "keystone build --no-ui && next build"
|
||||
|
||||
[deploy]
|
||||
startCommand = "npm run migrate && next start"
|
||||
Reference in New Issue
Block a user