Report this

What is the reason for this report?

404 on Angular app after deployment

Posted on February 9, 2022

I deployed an Angular app on Apps Platform. It shows a successful deployment, but I get a 404 when trying to access the app. I have tried setting catchall_document to index.html as suggested in similar questions, but that has no effect.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

Where is the index.html file generated at? If it is in a directory like dist, what you could try is in your component settings, to set the Output Directory to dist/name replacing name with the actual name of the directory.

Best,

Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.