Deployment failed problem in railway.com
notediart
FREEOP

3 months ago

I tried using a free hosting site railway which is yalls website and like I tried deploying it and stuff and deployment failed why?
Can someone help me with the issue?

$10 Bounty

19 Replies

3 months ago

Can you send your build logs?


notediart
FREEOP

3 months ago

1450120559202402300


3 months ago

Alright, I'll explain what's happening there:

When you deploy something on a container-like service (such as Railway) it needs what's known as an image to deploy. You can provide an image directly or provide a file called "Dockerfile" which explains how to build the image for your service.

Railway built a service called Nixpacks which can build that Dockerfile for you automatically, but has deprecated that service for their new service called "Railpack" which builds the image directly. It does this by looking at your app's structure, its files and such to understand what image needs to be built for your app.

The issue is that it uses set rules to follow and when your app does not use standardized naming conventions or file structures then Railpack simply doesn't know how to build your application image. That's the error you're seeing there.


3 months ago

What kind of app are you building?


notediart
FREEOP

3 months ago

a Discord bot and I thought this could host the bot cause it worked for me in replify but just when I keep my laptop on. I cant figure out how to keep the bot online and running but if you have suggestions for me please do tell me 🙏


3 months ago

what kind of discord bot? discordjs running on nodejs? discord.py?


(He is trying to run a zip file)


notediart
FREEOP

3 months ago

node.js


notediart
FREEOP

3 months ago

I use github so its a zip file there


3 months ago

thank you 💀


notediart
FREEOP

3 months ago

in other pages it unzipped the file automatically


notediart
FREEOP

3 months ago

I thought this works too


3 months ago

ediart, you'd need to unzip that zip file and upload the contents of your discord bot directly


notediart
FREEOP

3 months ago

okay I’ll login with Discord


And before you do that


Please reset your Discord bot's token


You've uploaded your .env file to github


notediart
FREEOP

3 months ago

okay


Github allows you to store the files directly, you don't need to zip them. I would suggest using GitHub Desktop if you are unfamiliar with git to create a repo from your source code which will be able to be ran by railway.


Loading...