So you’ve built your app, tested it in development mode, and now you’re ready to deploy it to a servlet container. Let’s assume that your app root directory is named golf-example.
Open a terminal. In the app root directory do:
golf --war .
That will produce a war file named golf-example.war in the app root directory. Upload that to your servlet container, and you’re in business.