Is possible deploy an angular project and a spring boot project separated?

March 7, 2016 2k views
Java Deployment Ubuntu

I have a yeoman angular project work better and a spring boot rest project in my server side, two projects separated. I need two droplets to deploy both? i can deploy both projects in the same droplet?

I'm confuse.

I'm sorry for my english.

1 Answer

This is definitely possible. The core of the issue is determining how your application processes will be managed, and what web server configuration you will use. This is something that with proper planning, can provide a solid way to continually add applications ( resources permitting ) or more sites to your server.

Both Nginx and Apache httpd allow for separate sites and support using proxy configurations ( see this for Apache and this for Nginx ) and modules to allow requests to be passed to your applications that support common interfaces. You can leverage that to use application managers ( e.g. gunicorn, unicorn, php-fpm, passenger etc ) to run applications.

With isolated application processes, it is simply a matter of configuring the domain, sub-domain or paths that will lead to the applications through proxy configurations or modules.

by O.S. Tezer
In this DigitalOcean article, we are going to see set up Apache on Ubuntu 13 and use it as a reverse-proxy to welcome incoming connections and redirect them to application server(s) running on the same network. For this purpose, we are going to use and work with the mod_proxy extension and several other related Apache modules.
Have another answer? Share your knowledge.