0

I got an Angular 2 app which im ready to build and host on a webserver. I followed How to bundle an Angular app for production to build my app.

I have uploaded all the files in the dist folder to my webserver but when opening the URL I dont see my app. I only see "app works!".

Im assuming I need to edit some config to point to the correct paths but I dont know where to start with this as its the 1st time building an Angular2 app.

My project files:

Project Structure

Files on webserver:

Webserver

Navigating to my webserver I see app works! and not the home page screen.

Please help

Community
  • 1
  • 1
JCom09
  • 89
  • 13

1 Answers1

0

From your description it seems your base path on the web server doesn't match <base/> tag in your index.html.

You can change it manually or via a param - follow the guide on NPM.

Yuri
  • 4,254
  • 1
  • 29
  • 46