Yashu
Explore posts from serversWatch paths does not work properly with railway config file
In my first project, I have defined
watch paths
via railway.json
file and it is not working.
tried both ways by adding prefixing the paths with /
and still does not seems to work.
---
In my second project, I have defined watch paths
via UI and works as expected.11 replies
CDCloudflare Developers
•Created by Yashu on 9/27/2024 in #workers-help
Leverge multi-tenency while deploy web application with user generated data
Posted a broader question to fully grasp on how can I built using Cloudflare Stack.
Requirements:
* Deploy a web application which will server the user generated content
* User can set custom domain to the web application
From what I understand:
* CF Worker can be used to accept all incoming requests from multiple custom domains to single worker by using
map URL pattern
* User generated data can be stored in D1
* KV can be used to map the custom domain ID to user generated content
How can I truly achieve a multi-tenency in the above scenario? Any/all help is really appreciated? 🙏4 replies
Recommended way to make health check endpoint private
What is the recommended way from Railway to make health check endpoint only avaiable to Railway and not publicly accessible.
I have some private services which are not publicly exposed/accessible.
9 replies
Relative path in railway.json file
I am trying to understand how relative paths work in
railway.json
file.
For example, if I have railway.json
and Dockerfile
file at ./packages/api
directory.
Does Railway will consider ./packages/api
as base directory? Will that be same for Dockerfile
as well?30 replies
How to split the build process from 1 repo and deploying 2 different services?
I am trying to deploy (1 node, and 1 go) service.
And I have a
Dockerfile
for deploying the Node service.
But, now the go service is also using the same Dockerfile
.
I prefer to use the Config As Code option, instead of using UI settings.26 replies
Application failed to respond
I checked my uptime software and noticed it was saying the application was down 18 hours ago.
I don't exactly know what happened. "App sleep" is also disabled.
I restarted my backend service and after that it worked fine.
But I didn't restarted the frontend, and it is continuing to display the same error "Application failed to respond"
31 replies
Service is still deploying even after 11 hours ago
From the Railway dashboard, I can see one of my services status is still showing deploying (638:40)
I don't think there is any issue with the codebase itself :thinkies:
Project ID: 8fc2ad89-714b-4cb3-9778-cb64d1373409
12 replies
Deploy static site after CI build
I have already seen few templates from Railway & the community for deploying static site to Caddy or Nginx.
But in cases the static files are already been version controlled in Git.
Where as, I have a Vite react application, which I would like to deploy using Caddy.
But not sure, how to do that.
23 replies
CDCloudflare Developers
•Created by Yashu on 4/26/2024 in #workers-help
How to set metaData to R2 object
I am using aws s3 based API to interact with r2 object.
I am trying to set metadata like this
But when I try to see metadata from the cloudflare dashboard.
I can't see any metadata for that specific object.
2 replies
CDCloudflare Developers
•Created by Yashu on 4/22/2024 in #workers-help
Cannot read properties of r2
I am trying to interact with r2 bucket from a worker.
But I get this error
Yes, I have already bind the bucket inside
wrangler.toml
file13 replies
How can I Duplicate the volume data
I was trying to sync the environment variable to Doppler service.
While it didn't imported all the environment variables to Doppler, and instead it messed up some variables in railway.
Luckly, it was just a database Docker image, and the data is still safe.
it was the production database 🙈
How can I duplicate the volume data, so that I can create a new service and attach the duplicated volume to the new service.
15 replies
Talk to another private service with correct URL?
I have added the private URL of serviceB to serverA.
serverA: webapp
serverB: api
I have deploy a graphql apis on serverB at
example.com/graphql
URL.
I have tried in the serverA as environment variable API_URL
in following ways:
- serviceB/graphql
- serviceB:<PORT>/graphql
If I directly added the internal URL with sub-path it doesn't work.
Am I doing something wrong here?8 replies
CDCloudflare Developers
•Created by Yashu on 8/27/2023 in #pages-help
How can I run static + dynamic site under same domain?
I am trying/figuring out, how to run a static site (SSG) + dynamic app (using Next.js SSR) serve pages under same domain.
For example
Static site
Hosted on Cloudflare pages
* /
* /pricing
* /features
* /contact
* /help
Dynamic site
Currently hosted elsewhere
* / (if auth cookie is present show the dynamic site with user logged-in)
* /settings (if auth cookie is present)
* /<username>
How can I merge both the sites together to be severed from single domain?
3 replies
How to deploy maildev image?
How can I deploy a https://hub.docker.com/r/maildev/maildev docker image?
As it require to define 2 different ports, one for the UI interface and other one for incoming emails.
6 replies