Questions tagged [railway]

101 questions
4
votes
0 answers

How to deploy a Sveltekit App using a Dockerfile?

I'm trying to deploy my Sveltekit App in Railway Whenever I try to run docker run --publish 8000:8000 my_project I get back > my-project@0.0.1 build > vite build sh: vite: not found This is my dockerfile # syntax=docker/dockerfile:1 FROM…
2
votes
1 answer

Tasks are pending in Celery[redis] in Flask on Railway

I have made a flask api and it is deployed on railway. There are some tasks that I have tried to made them background tasks using Celery. I am getting task backend and task id in the print but task.state is always pending and I have only few tasks…
concaption
  • 76
  • 6
2
votes
1 answer

How old does a GitHub account need to be to be trusted for deploy on Railway

When you deploy a Python telegram bot from GitHub on Railway hosting, you get the error: Your GitHub Can't Be Verified. Your GitHub might be too new or there might be risky repos on your account that means you can't verify with your GitHub. Most…
Astr0
  • 33
  • 4
1
vote
0 answers

build failed on railway deployment with golang language

I'm building a project with a telegram bot.But there was some kind of error when creating the container. #4 DONE 0.3s #5 [stage-0 1/8] FROM…
n3k
  • 11
  • 2
1
vote
0 answers

nestjs cors work in localhost but not work when deploy to railway

My graphql request works good when I test on localhost, but when deployed to railway, it throws cors error. I use apollo angular in frontend and work good in localhost. I use angular v16 and nestjs v9 (async function bootstrap() { const app =…
1
vote
1 answer

CSRF Token issue in Django app deployed in Railway, "CSRF verification failed. Request aborted."

The error I get is "CSRF verification failed. Request aborted." Error Image The site works fine and there are no issues on localhost I tried adding this base domain in my settings.py but I am still getting the same error: enter image description…
Huzaifa
  • 13
  • 2
1
vote
0 answers

NodeJS + mysql app: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at Status code: 503

i need to deploy my fullstack project to production. its connected to a mysql database and it's built with node.js and react. I followed this tutorial https://www.youtube.com/watch?v=nrG0tKSYMHc to create/deploy the server and backend to railway and…
queercoded
  • 55
  • 9
1
vote
0 answers

Mongodb collections data display blank on webpage with Crow

I have deployed to railway and mongodb collections named contacts is added with josn file. I want contacts' data display on webpage. Then I add a mongodb c++ drivers by create a dockerfile in hello_crow/bbox. I use the commanddocker build --rm…
Auly
  • 9
  • 4
1
vote
0 answers

Deploying Ruby on Rails application to Railway: Crashed error with PostgreSQL configuration

I'm using Rails 7.0.4 and Ruby 3.0.2. The first time I tried to deploy, I understood that I needed to start by using Redis and PostgreSQL. In one of the videos on Youtube, I learned that I should create a Procfile with the command line web: rake…
Philipe
  • 11
  • 1
1
vote
2 answers

Issue in the requirements.txt file when trying to deploy to Vercel

I'm trying to deploy my Django web app, however, vercel is giving me this error when it failed to deploy: Failed to run "pip3.9 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/workout_log/requirements.txt" Error: Command…
Aysmith17
  • 13
  • 3
1
vote
0 answers

Set-hookie does not set a cookie in a netlify app

So, I have a frontend vite app hosted on Netlify (link), and a backend api written in express hosted on Railway. When testing locally, the server is able to set cookies during redirect for Google OAuth. However, in production, it does not seem to…
ScorpsX
  • 11
  • 1
  • 1
1
vote
1 answer

ReactJS project keeps failing to deploy on Railway.app

#11 2.320 npm ERR! code EUSAGE #11 2.324 npm ERR! #11 2.324 npm ERR! npm ci can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with npm install before…
1
vote
1 answer

Django admin access error after deploying on railway

I have deployed Django app on railway and I'm having issues accessing my admin panel. I have tried CSRF_TRUSTED_ORIGINS and also django-cors-headers but the issue is still persisting. I get this error CSRF verification failed. Request aborted.…
kabszac
  • 11
  • 3
1
vote
1 answer

Exception in thread "main" java.lang.NoClassDefFoundError: deploy in railway.app springBoot

i have a spring boot app that runs perfect on my machine. I tried to deploy it on railway.app The build is ok but at deployment i get this error : Exception in thread "main" java.lang.NoClassDefFoundError:…
1
vote
1 answer

Error code 1 when trying to install railway cli

I am trying to install railway cli using their documentation and I keep getting Error code 1. I've had no issues with any other packages. The documentation says I need node version 16.X to run the command and I have verified I am running version…
David C
  • 41
  • 8
1
2 3 4 5 6 7