donutmuncha
Force build via Railway CLI
I am using Github Actions to force a build of my Astro frontend if content in the CMS is updated.
Here are my steps:
When I run
railway up -e staging --service astro_frontend
directly from my CLI, it works.
However Railway skips the build if no files have physically changed.
How can I force the build to complete?18 replies
Caddy + AstroJS subdomain redirect
I have a project built in AstroJS & Payload CMS.
In Astro I am serving up routes for the main domain e.g
/en
and routes which should belong on a subdomain eg /en/site/*
The intention is that en/site
is unavailable to the main domain
and the subdomain always defaults to en/site/*
Could I achieve this with Caddy? I was going to add this template to my project https://railway.app/template/wifz4K8 replies
Unable to deploy turborepo + astro + payload + pnpm monorepo
Thanks in
I've been able to get as far as building the application, but I'm not able to deploy it.
stack is:
- turborepo
- pnpm workspaces
- payloadcms
- astro
- mongodb atlas
When using
nixpacks build . --name my-project
locally it builds, however I am unable to start the application using docker run -it my-project
as my apps don't seem to pick up the variables from the .env
file.
Moreover, when the project deploys to Railway, the project builds ok, but when it comes to serving the applications, astro defaults to serving at localhost. here is the problem line from the deploy logs: @project/web:start: 01:19:21 AM [@astrojs/node] Server listening on http://127.0.0.1:3001
- but I've set PUBLIC_URL to https://my-project-production.up.railway.app
in the railway variables.
Here are my relevant files to help understand where I'm going wrong:85 replies