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?
19 Replies
3 months ago
Can you send your build logs?
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?
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?
3 months ago
(He is trying to run a zip file)
3 months ago
thank you 💀
3 months ago
ediart, you'd need to unzip that zip file and upload the contents of your discord bot directly
3 months ago
And before you do that
3 months ago
Please reset your Discord bot's token
3 months ago
You've uploaded your .env file to github
3 months ago
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.
