Yashu
Yashu
Explore posts from servers
RRailway
Created by Yashu on 6/14/2024 in #✋|help
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
RRailway
Created by Yashu on 6/13/2024 in #✋|help
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
RRailway
Created by Yashu on 6/13/2024 in #✋|help
MySQL db is not sleeping
Created a "test" environment from "production". - Enabled "App sleep" on all services in "test" environment. But my Mysql db is not sleeping, not sure why?
9 replies
RRailway
Created by Yashu on 6/7/2024 in #✋|help
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
RRailway
Created by Yashu on 6/4/2024 in #✋|help
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
new PutObjectCommand({
Metadata: {}
});
new PutObjectCommand({
Metadata: {}
});
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
[wrangler:err] TypeError: Cannot read properties of undefined (reading 'get')
[wrangler:err] TypeError: Cannot read properties of undefined (reading 'get')
Yes, I have already bind the bucket inside wrangler.toml file
13 replies
RRailway
Created by Yashu on 3/14/2024 in #✋|help
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
RRailway
Created by Yashu on 10/8/2023 in #✋|help
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
RRailway
Created by Yashu on 8/12/2023 in #✋|help
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
RRailway
Created by Yashu on 8/12/2023 in #✋|help
How to configure Nixpacks to not use Dockerfile?
Even though I have a Dockerfile in my codebase. I still want to use custom script file to build & start the server. How can I change that behaviour in Railway? Service ID: c2b1be14-293e-4445-a697-4eb6ff3b185f
8 replies
RRailway
Created by Yashu on 7/21/2023 in #✋|help
Reverse proxy requests via private networking to Docker container
I was trying to deploy a third-party docker image, and Railway ask to export the app via 0.0.0.0:PORT. Since I can't modify the source code, neither the docker image has the SET of environment variable to do so. I was thinking to create a separate app which will be public and routing requests via private networking to the Docker container. Is that possible?
11 replies
RRailway
Created by Yashu on 3/17/2023 in #✋|help
Not able to create mysql database
I am getting an error "Failed to provision" "Add MySQL Error"
8 replies
CDCloudflare Developers
Created by Yashu on 2/22/2023 in #workers-help
How to use remote kv worker while running in local environment?
According to the docs, I have added the required flags
wrangler dev ./build/index.js --env production --experimental-local=true --experimental-local-remote-kv=true
wrangler dev ./build/index.js --env production --experimental-local=true --experimental-local-remote-kv=true
Even after then it is still throwing this error:
[ERROR] In development, you should use a separate kv namespace than the one you'd use in production. Please create a new kv namespace with "wrangler kv:namespace create <name> --preview" and add its id as preview_id to the kv_namespace "POSTS" in your wrangler.toml
[ERROR] In development, you should use a separate kv namespace than the one you'd use in production. Please create a new kv namespace with "wrangler kv:namespace create <name> --preview" and add its id as preview_id to the kv_namespace "POSTS" in your wrangler.toml
7 replies
RRailway
Created by Yashu on 10/31/2022 in #✋|help
Unable to deploy to latest commit after rolling back
I tried rolling back to previous deployment but now if I re-trigger deploy by updating the ENV it doesn't deploy using the most latest commit. NOTE: I didn't pushed any new commit after rolling back to previous deployment. Project ID: 448c94c1-34c2-473c-ad1d-3faab9db779d
1 replies
RRailway
Created by Yashu on 9/27/2022 in #✋|help
Docker deployments is not processing ENVs correctly
I am using railway postgres & redis database with built-in variables REDIS_URL and DATABASE_URL In the Deploy logs, it throwing an error. REDIS: error: Error: connect ENOENT/$%7B%7B%20REDIS_URL%20%7D%7D I've already added environment variables as ARG in dockerfile.
15 replies
RRailway
Created by Yashu on 9/8/2022 in #✋|help
Hostname-IP does not match certificate's altnames
I've deployed the Graphql API on railway and webapp on vercel. After making the API calls from the webapp, it throws this error.
ApolloError: request to https://<domain>/graphql failed, reason: Hostname/IP does not match certificate's altnames: Host: 7pdafy4gh-mittalyashu1.vercel.app. is not in the cert's altnames: DNS:*.up.railway.app
ApolloError: request to https://<domain>/graphql failed, reason: Hostname/IP does not match certificate's altnames: Host: 7pdafy4gh-mittalyashu1.vercel.app. is not in the cert's altnames: DNS:*.up.railway.app
4 replies
RRailway
Created by Yashu on 8/31/2022 in #✋|help
Move service to another project
How can I move a service (deployed) to another project?
4 replies