I am trying to create a simple web page that uses the openshift platform and sparkjava which gives me a steady HTML The file is in the 'src / main / resources / public' folder (I have created the application using the following command, but when I navigate to the location ", the page returns under error
The service is temporarily unavailable, server temporarily maintained Unable to serve your request due to downtime or potential problems. Please try again later.
The command used to make the app:
Class upstart {public static zero main (string [] args) {String IP_ADDRESS = Sys Tem .ETenv ("OPENSHIFT_DIY_IP"); int PORT = Integer.parseInt (System.getenv ("OPENSHIFT_DIY_PORT")); SetIpAddress (IP_ADDRESS); Setport (PORT); Static file location ("/ public"); Receive ("/", new root () {public object handle (request request, response response) {response.redirect ("index.html"); return "";}});}
}
Can anyone help me troubleshoot this problem?
I got an issue resolving in the end. The problem was:
The script was initially not started, stopped and deployed properly.
No comments:
Post a Comment