Answer the question
In order to leave comments, you need to log in
Where to deploy a Java web application?
Wrote a small server in Java. I would like to try to make requests to it from the phone (android). So, are there hostings where you can deploy your server for FREE? The server itself is quite small, one war and a postgresql database. Run the server locally on Tomcat. It would be interesting to set up and run all this on the Internet.
Answer the question
In order to leave comments, you need to log in
If the task is simple to test, then run it on a personal computer. In the configuration of the android application, specify your external ip and port. Only open it for external requests.
Get some cheap vps. Install java tomcat and deploy. If desired, fasten the domain (optional)
Deploy this via Vagrant and connect to it as a remote machine. You will get an imitation of the fact that you are working with a project on a remote hosting.
By the way, Vagrant has Vagrant Share, which allows you to provide access to the container running on your computer from the outside (directly through the browser).
Try a 14 day trial with Jelastic. Tomcat + PostgreSQL is deployed in a few minutes. Plus a few more minutes to deploy the application. Get a domain name too. The list of partners can be found here .
Opebshift, Digitalocean. But it would be better/easier to emulate on your home computer.
Firstly, it is still correct to do this when forming a page in php.
Well, secondly, if you really need to do it with a script, then try like this
$(document).ready(function() {
var link = window.location.pathname;
$('.nav li.active').removeClass('active');
$('.nav li a').each(function() {
if ($(this).attr('href' == link) {
$(this).parent('li').addClass('active');
}
});
});
});
Have you ever thought that it would be more correct to do this in php?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question