Build application - PTAnywhere/ptAnywhere-api GitHub Wiki
As this project uses Maven, you can compile and deploy it using the following command:
mvn clean exec:exec
By default, the app will be deployed in the development server. Use any of the following commands to deploy it in other environments:
mvn clean exec:exec -Denv=devel # Development environment (explicitly stated)
mvn clean exec:exec -Denv=test # Testing environment
mvn clean exec:exec -Denv=prod # Production environment
Additionally, you can also define your own environment in a property file. The easiest way to do this is by using an existing property file as a template (e.g., the development environment one). If you choose this approach, use the following command:
mvn exec:exec -Denv=custom -DpropFile=[PATH-TO-YOUR-PROPERTY-FILE]
Please, note that you need to configure your web server before using the tomcat deployment command shown above. If you are using Tomcat6, you might need to consider this too.
Problems with missing dependencies? Check this page.