OS?
Windows 7
Versions.
run
ng --version.
angular-cli: 1.0.0-beta.19-3
node: 6.7.0
os: win32 x64Repro steps.
created with Angular2 latest version seed project
This is really confusing, as Java world we create build.xml or pom file and just running that does everything.
Please help / guide.
You can create a new project and copy over all files to your old project and update package.json.
I did it simillar way. Created a new project folder using ng new a copied all src files from old project into a new one (I also wanted to clean up).
ng generate only helps to create code skeletons, but it is completelly optional (I don't use it at all)
Thanks all, I was able to build it with just copying and 2 more changes:
So I have a dist folder, how I deploy to server, copy over to webappas folder of Tomcat?
Sorry if this is not appropriate place to post this question.
@skdhir
To deploy your application over tomcat you can copy the dist folder files to a new folder(say... project) and run the below command..
ng build --base-href /project/
Then under the webapps folder of your tomacat you need to paste the project folder. This will be the base url for your application.
You can also refer to #2966 if you get some 404 errors.
This will work... any issues then do post the same.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
You can create a new project and copy over all files to your old project and update package.json.