Sang Dang
Explore posts from serversWhat is the best way to archive the E2E tests
Hi, after many months, I still can not figure out how to run E2E tests against PR environment build. My requirement is quite simple: Create PR => trigger the PR environment build, if is OK => trigger the E2E test.
If I turn on the auto PR envrionment feature from Railway, I have no way to trigger the GitHub actions after the build completed because Railway never expose a way to do it. (I already spent days to confirm this and not sure if it still true until this time.)
If I manually create PR environment from github actions, and do I understand correctly, it is impossible through using railway CLI, and the only way is using GraphQL query?
And please give me constructive support and don't troll me. Thank you.
7 replies
How to trigger the Github Actions after the PR environment deployed
Hi, currently we want to trigger the Playwright E2E test against the PR environment URL, mean we have to wait for the PR environment deployment finished, then trigger that test on Github Actions. I tried to use the Webhook but face another issue, our Github repo is private and the workflow_dispatch requires the header, which Railway webhook does not support at this moment.
Is there any way to archive this?
10 replies
My PR environment suddenly failed a lot
I don't know why. I tried:
- pressing redeploy, still crash
- checking the postgres service for example, the logs are
No build logs associated with this deployment.
, No deployment logs. All output sent to stdout will be displayed here
- on the production environment, all of my services are in EU, but in this PR env, the postgres region is US West
I still not try the delete the PR env and recreate the PR to trigger the new one. But if we can not find the issue, I could try it.
This is real business so it's quite critical to me, please help.11 replies
Help deploy with Dockerfile
I'm trying to dockerize my app,
voi
, and after adding Dockerfile
into my git repo, Railway automatically pick it as main builder. I don't know why now it can not "see" the environment variables I have set in Railway project. It works well before when I build from github repo.
The Dockerfile: https://github.com/getsieutoc/voi/blob/master/Dockerfile26 replies
Is it normal when pgvector does not copy the POSTGRES_PASSWORD env vars from production environment?
I have a pgvector service, but whenever I make new PR, it crashes on the PR environment, the error is something like:
Which I find it's quite strange, because all other services like my nextjs app or nestjs backend just copy their env vars just fine.
Do I miss something here?
21 replies
How to "login to rail console"?
After install Chatwoot template, I need to do this step:
Enable channel_email (Login to rails console and execute the following)
https://www.chatwoot.com/docs/self-hosted/configuration/features/email-channel/setup
I'm not really expert in Rails, not sure how to do it in Railway, can someone help?68 replies
Backup cron template is not working
I follow this blog post https://blog.railway.app/p/automated-postgresql-backups but it does not moving forward. I can be sure I add correct secrets and bucket values.
8 replies
About Private networking
Hi, I saw Railway has https://docs.railway.app/reference/private-networking Private network domain, do I understand correctly, that with this feature, I can use it to call between services as long as they are hosted on Railway? For example from the
frontend
service, I can call http://backend.railway.internal/api/posts
to get the posts from backend
?9 replies