How to select region?
I want to use Europe instead of US. I have a PRO account and is a beta tester.
Build log says:
[Region: us-west1]
Variable in the service is:
RAILWAY_REGION europe-west4
82 Replies
Project ID:
988851b6-78d5-44de-a73d-3e5b6468c8bf
988851b6-78d5-44de-a73d-3e5b6468c8bf
Project ID: 988851b6-78d5-44de-a73d-3e5b6468c8bf
U don't seem to have the
Priority Board
cargo here in the Discord
Maybe that's why? Try doing /beta
again
And is your discord account linked properly in the railway settings?
(I may be wrong tho)Something went wrong. Please try again.
I get "Something went wrong. Please try again."
But I got it working. But I found no way to change region for my Postgres database so having the servers in the EU and the database in the US just made everything even slower (3 sec instead of 280 ms) 🙂
fun fact we can all see that something went wrong message
yeah, i've seen a lot of that message lately
is it a bug or sumthin?
yeah you can't change the region for the database plugins, the system those plugins rely on is different than the system regular services use and will soon be deprecated so there was no use in backporting private networking and regions to a system that would be getting deprecated.
the solution being, use this official postgres template, you'd set region in the service variables like you would any other service
https://railway.app/template/postgres
Percy is misbehaving
Yes because now the admin panel says I am not part of the beta all though the checkmark says I am 🙂
When I add the region variable there is a popup saying I must be part of priority onboarding (which I assume I am)
u just got the discord role, try again
I gave them that
Something went wrong. Please try again.
the railway dashboard says their beta, if the popup is getting in the way you can use the raw environment variable editor to set the region variable
are you services still not deploying to your set region?
The admin panel says this
I will try to deploy
please try this
I add the variable and get this
Tried pressing on both
Will deploy now
did you use the raw editor
No, "new variable" but it seems to deploy to right region but I have a redis server connected to this, will it also use Europe?
BTW, I am trying this project now: 2a996a89-6751-45f2-ab65-a153dcbf5df2
please see this message
but for redis you can use this official template
https://railway.app/template/redis
I think I used those templates for both Redis and Postgres
Clicked on New and then selected this
what you are showing me in your screenshot are the plugins, those are not the same as templates I linked
I selected Add postgresl and Add redis
Ah ok
So I select from there instead?
as per this message, you can't set the regions of the plugins, you'd need to use the templates I linked
correct
And then I will be able to have all on the same region?
correct again
So I remove the old "redis" and then I use the template. It says "ready to be deployed" but I find no way to deploy it.
screenshot please
Mmm this new redis template appears in all my projects now 🙂
seriously??
can you send me a screenshot of the full browser window?
Ah, it was a UI bug (?), it appeared along side the other plugins no matter until I found (and pushed) the Deploy button now it "attached" to the project I was in.
When I pushed
so all good and it's deployed now?
This is how it looked
Easy to think it was part of the project 🙂
but is it deployed into your desired project now?
Deploying
2 sec
you'd reference it's variables the same way you referenced the redis plugins variables
Seems like that yes
But I need to remove the first Postgres and Redis right?
looks good to me
correct
What exactly has I done now? Added two databases to this project, right?
The right way
And do I need to remove and add these again?
yes you would need to update the reference variables
give this a read
https://docs.railway.app/develop/variables#reference-variables
Cant I just select from the list?
looks like you can, but maybe rename the old plugins so you can differentiate between the two
I removed the old plugins
I do need to add the region variable to the database templates too right?
perfect, then yeah use the autocomplete to add the database variables to your service
and yes you would need to set a region in those new database services otherwise they deploy to us-west1
I think I selected the right variables but it was a mess 🙂
Postgres got redis icon for example
Not icon but name (redisport for postgres template) for example
that's not ideal, good thing it's still a beta feature
Yes the difference between template and plugin is a bit hard to grasp
thats fair
There won't be plugins in the near future tho, right?
i dont actually know the roadmap for how the deprecation will go down
Hopefully the migration from plugin to template will be as magical as the rest of Railway actually is (in a good way).
yeah im sure it will go smoothly
So I can continue using the plugins until it is out of beta
well you already switched over?
BTW, I was looking of moving a database from Vultr to Railway, any good idea how to do that smoothly, do you have a tool for that?
Well I am testing out Railway before moving my production servers here. So all works.
you would want to use pg_dump and pg_restore
ok
theres nothing railway native
I am currently using Cloud66 for managing my servers and they let me open up the console on the server to run rake tasks. Anything like that here on Railway?
there is no ssh/console access on railway, but depending on what you are doing with the rake tasks you could run the command locally with
railway run <command>
that will give the command ran access to the service variables from the railway service its linked to, so if the command you want to run only interacts with the databases and not the filesystem then that will work for youJust want to run rake tasks when fixing things in the database
Will check out railway run
Thank you
no problem, if you need any more help with the platform let me know!
Is it possible to get the server logs? Hard to know what when wrong on the server, I just get 500 error.
you can view the deployment logs
Its not updating, just log from deployment, not runtime
if you log to stdout/stderr without buffering, you will see it in the deployment logs, so make sure you are logging to stdout/stderr without buffering
Without logs I am blind.
show me screenshot though?
All I see and it is static (not changing after deploy)
then please take this into consideration
Thanks, got logs working
Nice
awesome