R
Railway

✋|help

Referenced variables are empty

Iimcorfitz9/15/2023
If I hardcode the url in env variables, the deployment is successful, however using a reference to a service variable, the application doesn't build as the environment variable is empty.
Iimcorfitz9/15/2023
497a7953-e85b-4044-b984-112dc9defad9
Bbrody1929/15/2023
you want to reference RAILWAY_PUBLIC_DOMAIN instead
https://docs.railway.app/develop/variables#railway-provided-variables
Iimcorfitz9/16/2023
Yes - But it gave me the option to use a variable from a sibling service. I am trying to use the RAILWAY_PUBLIC_DOMAIN assigned to service A as a variable in service B
Bbrody1929/16/2023
i am unable to reproduce this, please check you have everything setup correctly
Iimcorfitz9/16/2023
Hmm.. you are right.. Seems to be working now... My bad.
Iimcorfitz9/18/2023
@Brody Nah sry man.. I really don't know what it is I am doing wrong. But it doesn't work again.
Bbrody1929/18/2023
are you building payload with a dockerfile?
Iimcorfitz9/18/2023
no..
The only "difference" would be that it is deployed from a turbo repo
What confuses me is that the KEY is being created - but the value is empty. If I Write an actual string in the env variable instead of the railway reference, the value appears.
Bbrody1929/18/2023
remove the period from the next.js service name
Iimcorfitz9/18/2023
Aye,... I'll try that.
Bbrody1929/18/2023
I've seen names with parentheses fail to render properly
Iimcorfitz9/18/2023
That would seem to be the culprit. Thank you.
Bbrody1929/19/2023
no problem, I'll whip up an example project for me to test names that won't pass through the variable rendering system and let railway know
all i can come up with is service names with periods dont render, perhaps if the reference strings where split at the last period it would render properly?
cc @jr
Ccoffeecup9/19/2023
I can take a look today. Perhaps the parser needs to be updated to handle it

Looking for more? Join the community!

Recommended Posts
Setup a monorepoHey guys, I'm using yarn workspaces and turborepo. I tried setting up the build command to "yarn turCan't start Remotion serverWhenever I try to use the Remotion server it cannot open the browser process and shows me this errorRecover a file inside a deploymentBy mistake I left a sqlite file inside a deployment and made a lot of updates to the database on thaDeployment Failed during build processI'm encountering issues while trying to build my Vue 3 and TypeScript project on Railway using NixpaBuild failing without errorMy build is failing to deploy without any error. Its just saying the container failed to start. The Cloudflare detected but not redirectingI've put the the right dns settings in cloudflare NS into godaddy. see screenshot which should poinFailed to authenticate to mongodbDeploying a MongoDB database from the UI, automatically creates a database named "test" if you connePrivate NPM Registry (GitHub)I'm using Yarn 3, GitHub Packages, and NodeJS. I am testing a deploy with `railway up` and when it gDjango advice neededHello good people, i would like to know how can i get some support for Railway? I started with a basUpdate TypebotHello, how i can update my project of typebot without lose all? i am new user in railwayWho deleted our database?I am writing to inquire about the recent deletion of the MySQL database in our account, we noticed Dockerbuild failes with no matching versionI attached the error and the dockerfile. The dockerfile locally runs withouth error but on railway ifailed opening connection to sql: default addr for networkHi, I am trying to deploy my golang web service which connects to mysql. I have added the mysql url Deploying Meilisearch template does not workI have a running project, If I click on new -> template -> Meili then a new service is created. HoweDeploy Flutter, error on buildHelp me! How do I deploy my flutter app on railway?Strapi crashes out of nowhereHello, my Strapi app sometimes crashes out of nowhere. This is not very good, because I have a prod Automatic Scaling not workingProject Id: 70ab406f-186f-40f7-ac61-c1a8dcb4bbb9 I am a user on the Hobby plan, the scaling on my pCron Job Run NowHello, I created a separate service with a cron expression configured. All works well until I try tNo sure that the changes are being applied when railway up.I have a Django app that was working fine until recently. One day, after running `railway up`, I staReferenceError: FormData is not defined in ProductionHello, my codes are working fine on localhost, but when I push the codes to railway it throws this m