donutmuncha
donutmuncha
RRailway
Created by donutmuncha on 11/13/2023 in #✋|help
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:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Install Railway CLI
run: npm install -g railway
- name: Login to Railway
run: railway login --browserless
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
- name: Trigger Railway Build for Astro Frontend
run: railway up -e staging --service astro_frontend
env:
RAILWAY_PROJECT_ID: ${{ secrets.RAILWAY_PROJECT_ID }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Install Railway CLI
run: npm install -g railway
- name: Login to Railway
run: railway login --browserless
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
- name: Trigger Railway Build for Astro Frontend
run: railway up -e staging --service astro_frontend
env:
RAILWAY_PROJECT_ID: ${{ secrets.RAILWAY_PROJECT_ID }}
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
RRailway
Created by donutmuncha on 11/9/2023 in #✋|help
MongoDB - Unable to load data set in Compass
No description
31 replies
RRailway
Created by donutmuncha on 11/3/2023 in #✋|help
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/wifz4K
8 replies
RRailway
Created by donutmuncha on 10/1/2023 in #✋|help
Unable to deploy turborepo + astro + payload + pnpm monorepo
Thanks in patrikaww 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