creativetimofficial / ct-material-dashboard-pro-angular

68 stars 35 forks source link

[Bug] Build project with name Demo in heroku #410

Open aissa-atif opened 2 years ago

aissa-atif commented 2 years ago

Version

2.4.1

Reproduction link

https://demos.creative-tim.com/material-dashboard-pro-angular2/#/dashboard

Operating System

Linux (Heroku)

Device

Desktop

Browser & Version

Chrome

Steps to reproduce

1)fix name of application in package.json : "name": "firstStep", 2) commande for build application : "heroku-postbuild": "ng build --configuration production --aot" 3 fix the path name in server.js /dist/firstStep/index.html . 4 turn commade node server.js to start the application 4) open application in Heroku : Application not found (dist/firstStep/index not existe)

What is expected?

after build application we get new folder with name dist/firstStep/.. (firststep is name fixed in package.json)

What is actually happening?

we get new folder with name dist/demo/..


Solution

change dist/firstStep to dist/demo to find the solution in server.js

Additional comments

i need explain : why i get the name demo for the build folder , can i go to production without any probléme of licence ?