Angular App getting Application failed to respond after deployment in Railway

Hi, i'm getting Application failed to respond after deploy my angular app on Railway! Any advice?!
Solution:
Hi, i'm getting Application failed to respond after deploy my angular app on Railway! Any advice?!...
Jump to solution
35 Replies
Percy
Percy2y ago
Project ID: 3ae931f2-63d1-42d7-b86c-d6d4c39c6e6b
mhmdfawzy
mhmdfawzyOP2y ago
3ae931f2-63d1-42d7-b86c-d6d4c39c6e6b
Brody
Brody2y ago
can you share a link to your repo so I can advise further?
mhmdfawzy
mhmdfawzyOP2y ago
GitHub
GitHub - mhmdfawzi/iqueue-fe: A Frontend App for SaaS Queuing Porta...
A Frontend App for SaaS Queuing Portal. This Frontend implemented using Angular framework and for education purposes. - GitHub - mhmdfawzi/iqueue-fe: A Frontend App for SaaS Queuing Portal. This Fr...
root
root2y ago
This should fix it: 1. Rename your start script to dev. 2. Add serve to your dev dependencies. 3. Add a new start script: serve dist
Brody
Brody2y ago
I like your spirit
mhmdfawzy
mhmdfawzyOP2y ago
@Brody are you tried this before?
Brody
Brody2y ago
yes ive done this before, trying to remember the proper steps to take, once i do ill come back and tell you
mhmdfawzy
mhmdfawzyOP2y ago
i'm waiting, thanks in advance!
root
root2y ago
does this work?
Brody
Brody2y ago
it wouldn't
root
root2y ago
The problem is that you're running a dev server in production. Why not?
Brody
Brody2y ago
the output folder is not named dist also your start command has no flags 1. rename the start script to dev 2. install serve by running npm i serve in your project folder 3. add a new start script: serve docs -s -n -L -p $PORT if you have any build or start commands set in your railway service settings, please remove them @MhmdFawzy
mhmdfawzy
mhmdfawzyOP2y ago
deployment log as follow: sh: 1: serve: not found
Brody
Brody2y ago
you did not follow the directions
mhmdfawzy
mhmdfawzyOP2y ago
already do.. is this what you mean?!
Brody
Brody2y ago
my directions included 4 things, please complete all 4 things
root
root2y ago
docs?!
Brody
Brody2y ago
yes, that's the set build folder for his app that's why I always ask for a repo, there's just so many possibilities and seeing the repo first hand eliminates a lot of the unknowns @MhmdFawzy - have any success yet?
mhmdfawzy
mhmdfawzyOP2y ago
not yet! same issue and the application always crashed!
Brody
Brody2y ago
show me a screenshot of the deploy logs I followed my own instructions that I gave to you and was able to successfully deploy your app without issues
mhmdfawzy
mhmdfawzyOP2y ago
it's working for me right now without any issues! but its showing an old version of the app.. version related to 4 months ago! is this related to the docs option?!
Brody
Brody2y ago
no
mhmdfawzy
mhmdfawzyOP2y ago
so what is your expectations!?
Brody
Brody2y ago
I don't know what to tell you, I follow the instructions above and had no issues are you deploying from the correct branch
mhmdfawzy
mhmdfawzyOP2y ago
yes.. its working fine for me without any issues.. but i talk about the version.. its to old compared to the current code
Brody
Brody2y ago
?
mhmdfawzy
mhmdfawzyOP2y ago
i ve checked the docs folder, and i found its same version that i see its for sure related to the docs
Brody
Brody2y ago
do you have docs/ in your .gitignore file?
mhmdfawzy
mhmdfawzyOP2y ago
no, i don't have
Brody
Brody2y ago
if you don't, please add it, make sure you aren't committing the docs folder
mhmdfawzy
mhmdfawzyOP2y ago
ok
Brody
Brody2y ago
yep you have committed the docs folder
mhmdfawzy
mhmdfawzyOP2y ago
working right now 🤩 🥳 Thanks so much @Brody 👏
Brody
Brody2y ago
awesome, glad I could help 🙂
Want results from more Discord servers?
Add your server