Sairam
February 1, 2024, 9:14am
1
Hi guys,
I’m using Angular and Node.js for my website. When I attempt to deploy my site on netlify , I am met with a “Page not found” and an error in the console which reads: "Failed to load resource: the server responded with a status of 404 (). "
Here is my Github link:GitHub - sairam63/docweb
Here is my Netlify link: https://fabulous-babka-7f4e60.netlify.app/
@Sairam My guess is that you haven’t set your Build settings , (which doesn’t happen automatically), and that you’re accidentally just deploying your source files.
You can see this here:
https://fabulous-babka-7f4e60.netlify.app/website_D/README.md
https://fabulous-babka-7f4e60.netlify.app/website_D/package.json
https://fabulous-babka-7f4e60.netlify.app/website_D/src/main.ts
etc.
You should configure your build, read the definitions carefully and then set them based on what your project needs.
Sairam
February 1, 2024, 9:22am
3
@nathanmartin thanks for reply i will go through it
@Sairam Also note that there is no “node.js” hosting with Netlify, so your server app won’t work “as is”, see:
Last reviewed by Netlify Support on December 2022
How do I run a server/database at Netlify?
We often get questions about how to run a specific backend server or database at Netlify. Examples of these types of questions include:
How to I get my node HTTP listener to respond to requests?
How do I start Mongo/MySQL/<insert-some-database-here> running on the server?
How can I SSH into my website?
We are here today to answer these questions - and the answer is: you can’t!
What do you m…
If you do have to use express you would need to do it with:
2 Likes