R
Railway•2w ago
Chioma

Deploying App Issue - Cannot Link GitHub Repo

Hi! I am looking for some help trying to deploy my app usingRailway. I am trying to connect my empty serivice to my GitHub Repo, but when I do this I receive this error? Can some assist please?
No description
33 Replies
Percy
Percy•2w ago
Project ID: N/A
Chioma
ChiomaOP•2w ago
N/A
Fragly
Fragly•2w ago
That's interesting Where exactly did you click that lead to this page?
Chioma
ChiomaOP•2w ago
I've never seen it before. I was trying to connect my repo I will show you what I clicked before I clicked this:
Chioma
ChiomaOP•2w ago
No description
Fragly
Fragly•2w ago
let me see if I can reproduce I can't, probably because I have my GitHub connected already and you didn't
Chioma
ChiomaOP•2w ago
This window pops up so then i click this:
Chioma
ChiomaOP•2w ago
No description
Chioma
ChiomaOP•2w ago
Then i get the error I posted orginially
Fragly
Fragly•2w ago
Tried from that page and still can't reproduce
Chioma
ChiomaOP•2w ago
It seems it wanted me to authroize github account, and i had to do it a different way
Fragly
Fragly•2w ago
Could you check if your GitHub is connected in your account settings
Chioma
ChiomaOP•2w ago
i think it's working now!
Fragly
Fragly•2w ago
oh cool, I figured so Did you go through your account settings to connect your GitHub then?
Chioma
ChiomaOP•2w ago
I tried to configure to Github Repo instead of starting with an empty service. Then it authorized it there. Thanks for trying to help me!! i appreciate it
Fragly
Fragly•2w ago
Awesome, thank you for clarifying I'll let the team know because this definitelly doesn't seem like intended behaviour 🤣 thanks for bringing this up
Chioma
ChiomaOP•2w ago
haha glad i can unintentionally help :p i did have an error in my build if you're still free?
Fragly
Fragly•2w ago
All good, mind sharing your logs then? https://bookmarklets.up.railway.app/log-downloader/
Chioma
ChiomaOP•2w ago
yes sorry forgot how to do this... the link is in my bookmark, but how do i get the deploy log in there again? the error is here in a screenshot while i try to remember
Chioma
ChiomaOP•2w ago
No description
Fragly
Fragly•2w ago
You just go to your build logs and click the bookmark are you sure these are actual errors? it seems to me like it's just stderr instead of stdout which some apps do for some reason
Chioma
ChiomaOP•2w ago
the app deployed, but it isn't visible, so i assumed so https://angular-app-frontend-production-d84c.up.railway.app/
Fragly
Fragly•2w ago
if the app is running but you're getting application failed to respond then it could just be misconfiguration this might help: https://docs.railway.app/guides/fixing-common-errors#application-failed-to-respond
Chioma
ChiomaOP•2w ago
having a look quick question and sorry if this is silly i am only trying to deploy the frotnend of an angular app. i didnt do/setup the backend(whichi i usually use nodejs/express for) so would that be an issue at all in deploying or shouldn't be related?
Fragly
Fragly•2w ago
When deploying frontend only apps on Railway, you'd want to use some sort of reverse proxy to serve them properly like Caddy. Railway is not really technically equipped to properly serve static files Try taking the nixpacks.toml and Caddyfile from this template and throw it into your project and you should be good to go
Chioma
ChiomaOP•2w ago
okay! i did do that, but mayvbe mine wasn't updated for angular 17. trying now!! yeah same error here's my github repo: https://github.com/ChiomaGrace/inRhythmAssessment/tree/main
Fragly
Fragly•2w ago
I think your repo is private
Chioma
ChiomaOP•2w ago
adjusted! sorry
Fragly
Fragly•2w ago
No worries, I believe the issue is that your Angular app is embedded in the frontend folder, are you deploying your app from that folder? if so then you might need to place the nixpacks.toml and Caddyfile within that folder as well, otherwise you'd want to consider removing the files from frontend and placing them in the root of the repo
Chioma
ChiomaOP•2w ago
that was it!! thanks soo much
Fragly
Fragly•2w ago
Awesome, happy to help 🙂
Chioma
ChiomaOP•2w ago
Have a great day! And thanks again🙂
Fragly
Fragly•2w ago
You too!
Want results from more Discord servers?
Add your server