Being very new to Mojolicious I am having trouble with getting my apps to work. I am running everything off of a remote server, but all the tutorials I could find only want to show the localhost way of deploying. As the title indicates I am getting 500 internal server errors instead of the apps being loaded/ran and don't really know why. Could someone explain how this is done for those not using a local machine to run their apps at?
Here is the demo app all nice and pretty as generated:
#!/usr/bin/env perl
use Mojolicious::Lite;
# Documentation browser under "/perldoc"
plugin 'PODRenderer';
get '/test' => sub {
my $c = shift;
$c->render(template => 'index');
};
app->start;
__DATA__
@@ index.html.ep
% layout 'default';
% title 'Welcome';
<h1>Welcome to the Mojolicious real-time web framework!</h1>
To learn more, you can browse through the documentation
<%= link_to 'here' => '/perldoc' %>.
@@ layouts/default.html.ep
<!DOCTYPE html>
<html>
<head><title><%= title %></title></head>
<body><%= content %></body>
</html>
Everything loads fine and the hypnotoad command returns:
Listening at "http://*:8080"
Server available at http://127.0.0.1:8080
What needs to be done to get this app to load via website url instead of localhost?
Apologies if this seems like a silly question but there doesn't appear to be any obvious tutorials or much discussion on running mojo apps from a remote server so any help is appriciated as I am sure other newbies have encountered a similar problem before and more to come.