Questions tagged [railway]

101 questions
1
vote
1 answer

PHP connect to MySQL container created on Railway

PHP newbie here. I created a cloud MySQL provision using Railway (a Heroku alternative) which I'd like to connect to. Connecting to the database should be fairly simple, as the service provides a connection url. However, this fails to connect and…
helio23
  • 11
  • 1
1
vote
2 answers

Firebase Login feature not working in deployed Next js app but works fine in local environment

I have created a next js app with firebase Google login feature, it works absolutely fine in my local environment but when I deployed it on Railway and Vercel the Login feature is not working, as the user clicks on the login button it doesn't show…
1
vote
0 answers

My API on railway is only in "building" state, logs don't show any errors

So I put my API node on the railway and it stayed in the "building" state. I set the build command to "npm start" and the root directory to "api". I've been trying to solve this for a few hours and I don't know why it doesn't say "success". I've…
maria
  • 11
  • 1
1
vote
1 answer

How to fix csrf token problem after deployment on railway of django project

Forbidden (403) CSRF verification failed. Request aborted. Help Reason given for failure: Origin checking failed - https//:webiste does not match any trusted origins. In general, this can occur when there is a genuine Cross Site Request Forgery, or…
0
votes
2 answers

ERR into railway deploy JS project

I try deploy my API project into railway but I get an error nodemon src/config/server.js [nodemon] 3.0.1 [nodemon] to restart at any time, enter rs [nodemon] watching path(s): . [nodemon] watching extensions: js,mjs,cjs,json [nodemon] starting…
0
votes
0 answers

Errors with Deploying a Django and React App to Railway

I'm struggling to deploy my django app to railway. The app continues to successfully deploy to Railway, however when visiting the URL of my railway app, I continue to get the error: TemplateDoesNotExist at /index.html. Since I'm using react with…
Andrew
  • 31
  • 5
0
votes
0 answers

Spring Boot + Vaadin deploy

I'm trying to deploy my simple spring boot project to railway, but have error: va.lang.RuntimeException: Unable to…
0
votes
0 answers

Pycairo build failed as I tried upload django project to Railway

I have been trying to upload my django project to Railway but whenever i try to upload fro my github repo this is the stack error i get  #10 27.27 copying cairo/__init__.py -> build/lib.linux-x86_64-cpython-310/cairo  #10 27.27 …
Zenji
  • 73
  • 6
0
votes
2 answers

Request Taking too long in Django

I have been trying to build a mathematical model of chemotherapy drug dose scheduling as part of my thesis. Firstly, I did the logic in MATLAB and then implemented it in Python. Then I tried using Django. While the app runs fine on localhost, it…
0
votes
0 answers

node:internal/modules/cjs/loader:998 throw err; - it works in localhost but not in Railway

I fixed it, I added a comment below. I have been following this mdn tutorial: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/deployment And I am just in the part of deploying the app, so I used Railway as the tutorial…
0
votes
0 answers

gem 'activerecord-sqlserver-adapter' does not work in rails with Railway

To connect to a SQL Server database from Rails, I had to install a gem: gem 'activerecord-sqlserver-adapter', '~> 7.0.0' which in turn requires me to install gem 'tiny_tds', '~> 0.7.0' To make this work, I needed to run sudo apt-get install…
0
votes
0 answers

Communicate backend with frontend in railway

I have an app in railway that has 2 parts, the front and the backend The backend tells me to use that to communicate internally This is my code in frontend: const handleSubmit = async (event) => { event.preventDefault() try { …
0
votes
0 answers

celery running issue on raliway

inside the Procfile of my django app im using this worker: celery -A project.celery worker (using Redis as broker) and using railway platform for hosting my application but after deployment application is crashing : error is something like this…
0
votes
0 answers

failed deployment in railways for react application with node backend

"I want to deploy my full-stack application on Railway. To do that, do I need to create a command similar to 'heroku-postbuild' in Railway? In Heroku, the 'heroku-postbuild' script is used to specify additional commands that should run after the…
0
votes
0 answers

Connect django-server which are hosted by railway.app to react-server, also hosted by railway.app

I'm trying to connect my running Django-server to my running react-"server", but I don't know how... I have done the task with my apache-server, but can't manage to do it in railways.app. Any helpful minds out there who can guide me to my goal?