R
Railway

✋|help

Railway Github Action

Ssdan9/12/2023
Hey i followed the blog online and am trying to deploy my railway app under a backend/ directory in my mono repo, i tried this but getting a 500 error on github actions, any chance i can get some help?


  deploy_backend:
    runs-on: ubuntu-latest
    name: Deploy Backend to Railway
    steps:
      - name: Checkout Code
        uses: actions/checkout@v2

      - name: Change to Backend Directory
        run: cd backend

      - name: Use Node 18
        uses: actions/setup-node@v1
        with:
          node-version: 18.x

      - name: Install Packages
        run: yarn install --frozen-lockfile

      - name: Install Railway CLI
        run: npm i -g @railway/cli

      - name: Deploy to Railway
        run: railway up
        env:
          RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
          workingDirectory: './backend'
Ssdan9/12/2023
https://blog.railway.app/p/github-actions for reference

i think the issue is that idk if workingDirectory is the right term
BBrody9/12/2023
whats the reason you are deploying from github actions in the first place?
Ssdan9/12/2023
Run railway up
  railway up
  shell: /usr/bin/bash -e {0}
  env:
    RAILWAY_TOKEN: ***
Indexing...
Uploading...
Failed to upload code with status code 504 Gateway Timeout
Error: Process completed with exit code 1.


getting a 504 timeout
hmm i guess i can just set it up on railway's end directly
yeah i thought it would be cleaner to have everything in a github action but thinking again i can just do this via railway
BBrody9/12/2023
indeed
just set the root directory in the service settings
unless you are using the action to do something else as well?

Looking for more? Join the community!

Recommended Posts
Build slowHi, ive pushed some updates to my sveltekit app that makes my buildtime about 4 minutes for some reaIssue Deploying Laravel PHPHello, i'm trying to deploy an already existing project made in PHP, using Laravel, and i'm trying tCustom domain not showing CNameHi! Just wanted to deploy our main app to Railway but when adding a custom domain it shows an error custom domain via googleHi! I am trying to deploy to a custom domain managed by google, and saw a bunch of posts about issueenvironments are linked together?I've two environments, production and development. If I delete one service in development, it shoulDeployment stuck at building phaseDeployments are stuck at #3 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1693872Outbound traffic to Google Pub/Sub limitedProject id: bc848a89-1faa-4b26-af86-58c13f7a2e99 I am using using google pub/sub with pull subscripAccessing secret env variables during build step```toml [variables] GOPRIVATE="github.com/stroomnetwork" STROOM_REPOS_ACCESS_KEY="ghp_THIS is Secretidle cron job resource usuageim playing around with cron jobs, and they seem to be using around 200mb of ram idly even when not rMixed Content error: HTTP vs. HTTPSI have a Railway/React/Vite frontend accessing a Railway/Fastapi backend, and my frontend receives tDeployment fails when pulling nixpack imageDeployments are failing on this internal build step: #3 [internal] load metadata for ghcr.io/railwayUnable to find PostgreSQL client librarySetting up a Rails + Postgres app but deployment is failing due to an "Unable to find PostgreSQL cliInactive deployment stuck in "waiting"I have an old deployment stuck in a "waiting" status. I was doing some empty commit on my github repLogs not showingAre there problems with the logs? In all my projects logs have stopped showing since ``Sep 12 12:32Trouble unlinking DiscordTrying to unlink discord so that I can link another account, but its not letting me disconnect the cpostgres db service not accessible from my clientThis morning, the DB refuses to accept connections and when I checked the logs, I saw this: does thinginx revere proxy 503 errorHi! I wanted to set up a reverse NGINX proxy with mixpanel. I used the dockerfile provided by them@railway/cli not running correctly when installed as a Bun devDependencyI have `@railway/cli` installed as a `devDependency` in my project. This has worked fine with me whiBun installHi, im trying to deploy a bun app to railway, nixpacks seems to have picked it up, but is trying to Memory MetricsDo the memory metrics represent the entire memroy being used by all the active process in that servi