R
Railway4mo ago
pearcy

Deploying Ghost on Railway from GitHub Repo

Hey everyone, I’m working on self-hosting a Ghost CMS using the Ghost Starter repo from my GitHub: https://github.com/TryGhost/Starter. Setup: 1. Project: Ghost CMS, based on the Starter theme, hosted on Railway. 2. Deployment method: Self-hosting on Railway, pulling the source code directly from my GitHub repo. Issue: I’m facing a deployment issue during the yarn install --frozen-lockfile step. Here’s what the logs show:
#11 2.148 error Your lockfile needs to be updated, but yarn was run with --frozen-lockfile.
#11 ERROR: process "/bin/bash -ol pipefail -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1
#11 2.148 error Your lockfile needs to be updated, but yarn was run with --frozen-lockfile.
#11 ERROR: process "/bin/bash -ol pipefail -c yarn install --frozen-lockfile" did not complete successfully: exit code: 1
It seems the lockfile needs to be updated, but the install process is forced to use a frozen lockfile, causing the build to fail. package.json snippet
{
"name": "ghost-starter-theme",
"version": "1.0.0",
"private": true,
"scripts": {
"start": "ghost run",
"build": "rollup -c --environment BUILD:production",
"dev": "rollup -c --environment BUILD:development -w"
},
"dependencies": {
"ghost": "^5.x",
"mysql2": "^2.3.3"
},
"devDependencies": {
"ghost-cli": "^1.21.0",
"rollup": "^3.18.0"
}
}
{
"name": "ghost-starter-theme",
"version": "1.0.0",
"private": true,
"scripts": {
"start": "ghost run",
"build": "rollup -c --environment BUILD:production",
"dev": "rollup -c --environment BUILD:development -w"
},
"dependencies": {
"ghost": "^5.x",
"mysql2": "^2.3.3"
},
"devDependencies": {
"ghost-cli": "^1.21.0",
"rollup": "^3.18.0"
}
}
What I Need Help With: - Given that I’m using the starter Ghost CMS repo, do I need to update the lockfile, or is there a better approach to avoid this error? - Am I missing anything in my setup for deploying on Railway when self-hosting without Docker?
- I was able to deploy using Railway’s templates but need to deploy from my GitHub repo to allow for editing and updates. Any advice or insights would be appreciated! Thanks in advance!
Solution:
I think I will make my life easier and use the Railway templates/docker and just edit the themes locally.
Here is the version I used and it's easy, peasy (there are multiple Ghost Docker versions)...
Jump to solution
4 Replies
Percy
Percy4mo ago
Project ID: d69a5742-7e36-4b23-b053-2b2f8333e4dd
pearcy
pearcyOP4mo ago
d69a5742-7e36-4b23-b053-2b2f8333e4dd
Solution
pearcy
pearcy4mo ago
I think I will make my life easier and use the Railway templates/docker and just edit the themes locally.
Here is the version I used and it's easy, peasy (there are multiple Ghost Docker versions)
pearcy
pearcyOP4mo ago
No description
Want results from more Discord servers?
Add your server