By IsaacFH
I’m testing the new feature called “apps platform” I’m using an angular project with multiple routes and parameters. I’ve been trying multiple ways to configure my app but always getting a 404 message… any ideas? it would be a best idea to create an empty droplet to manage to route manually?
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!
Hi @IsaacFH,
There is a similar question from a user which was also using App Platform with Angular again experiencing a 404 error:
https://www.digitalocean.com/community/questions/app-platform-app-reloading-leads-to-404-site
download current app spec from https://cloud.digitalocean.com/apps, in the settings tab you will find App Spec to app.yaml file
add catchall_document: index.html
ex:
name: myapp
region: fra
static_sites:
- build_command: |-
npm install
npm install -g @angular/cli@11.2.0
ng build --prod
environment_slug: node-js
gitlab:
branch: master
deploy_on_push: true
repo: myrepo/myapp
name: myapp
output_dir: dist
catchall_document: index.html
routes:
- path: /
doctl apps listdoctl apps update {{ap_id}} --spec app.yamlHaving said that, I’ll urge you to check out the question and the thread beneath it, it might help you further.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.