Sudhir
Sudhir

Reputation: 579

Deploy local angularjs application to webserver

Hi all i have completed my webapplication using angularjs, In local iam using tomact server in eclipse and it is working fine, Now i want to deploy my application to webserver what is the process to do it.

For ex : my local url is : http://localhost:8080/Hms/#/
i want to the url as http://www.hms.com

Please help me i am new in angularjs

Upvotes: 0

Views: 1329

Answers (2)

Adil Karaöz
Adil Karaöz

Reputation: 226

If your angular web application depends on Tomcat server;

  1. If you haven't own server for web hosting which has http ://www.hms.com, your hosting provider should provide Tomcat feature.
  2. If you have own server for web hosting which has http ://www.hms.com, just copy paste your all files in your project folder e.g. $TOMCAT_PATH/webapps/your-project-root/. And redirect http ://www.hms.com to Tomcat port (default is 8080)

If you are using only AngularJs, it shouldn't depend on Tomcat. You can use angular boilerplate https://github.com/adilkaraoz/ngbp. Github link provides information in details. With ngbp, just copy build folder inside into the your web hosting and at the and you have http //www.hms.com url which include your web files.

Upvotes: 1

Sathik Khan
Sathik Khan

Reputation: 439

You can deploy this project same as how you are deploying other web applications in tomcat. Hope you build a war file and deploy them.

Angularjs is a javascript framework as Jquery. For server it's javascript, which will be served back to the client as other js files.

Please refer how deployments are done tomcat. Just fyr, https://tomcat.apache.org/tomcat-7.0-doc/deployer-howto.html

Thanks.

Upvotes: 0

Related Questions