Good afternoon community. I am a student writing a web application using the Grails framework (previously written in pure Java with the Spring framework). There was a question: how to deploy your application on the local computer (not to be confused with localhost) so that it could be accessed from the network, or tell me free online hosting, preferably with instructions for deployment?
1 answer
It makes no difference whether grails or not grails. For any server:
- Make sure you have a white IP address. Otherwise, you will have to use something from the DynDNS level.
- Start the application using the external network interface as the host (0.0.0.0 is usually sufficient).
- Open the port on the machine running the server.
- If you access the Internet through a router, you will most likely need to forward a port on it (since the router will have an external IP address).
Ps. "Hosting" in the context of the java-server is some kind of perverted concept. You will feel comfortable on the VDS server. You can try the free annual micro-instance from Amazon Web Cloud.
|