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:Jump to solution
Hi, i'm getting Application failed to respond after deploy my angular app on Railway!
Any advice?!...
35 Replies
Project ID:
3ae931f2-63d1-42d7-b86c-d6d4c39c6e6b
3ae931f2-63d1-42d7-b86c-d6d4c39c6e6b
can you share a link to your repo so I can advise further?
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...
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
I like your spirit
@Brody are you tried this before?
yes ive done this before, trying to remember the proper steps to take, once i do ill come back and tell you
i'm waiting, thanks in advance!
does this work?
it wouldn't
The problem is that you're running a dev server in production.
Why not?
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
@MhmdFawzydeployment log as follow: sh: 1: serve: not found
you did not follow the directions
already do..
is this what you mean?!
my directions included 4 things, please complete all 4 things
docs
?!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?
not yet! same issue and the application always crashed!
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
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?!
no
so what is your expectations!?
I don't know what to tell you, I follow the instructions above and had no issues
are you deploying from the correct branch
yes.. its working fine for me without any issues.. but i talk about the version.. its to old compared to the current code
?
i ve checked the docs folder, and i found its same version that i see
its for sure related to the docs
do you have
docs/
in your .gitignore file?no, i don't have
if you don't, please add it, make sure you aren't committing the
docs
folderok
yep you have committed the docs folder
working right now 🤩 🥳 Thanks so much @Brody 👏
awesome, glad I could help 🙂