[Mojolicious] Re: Deployment: launch hypnotoad on boot

2016-07-29 Thread Алексей Орлов
Hi!

Try this 

https://github.com/kraih/mojo/wiki/Integrating-hypnotoad-with-systemd-and-rsyslog

пятница, 22 июля 2016 г., 13:44:57 UTC+3 пользователь Gabor Szabo написал:
>
> Hi,
>
> I am trying to deploy a Mojolicious-based application on an Ubuntu server.
> When I launch the application with hypnotoad everything is fine, but I 
> wonder what is the recommended way to make the Hypnotoad server launch when 
> I reboot the Linux box?
>
> I looked at 
> http://mojolicious.org/perldoc/Mojolicious/Guides/Cookbook#DEPLOYMENT but 
> could not find this information.
>
> regards
>Gabor
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


Re: [Mojolicious] Re: Mojolicious on Openshift

2015-12-02 Thread Алексей Орлов
Sebastian, I have a question.

How can I use ENV variables within  my config file to use their with
hypnotoad?
I want to something like this:

{
  listen => ["http://$ENV{OPENSHIFT_DIY_IP}:$ENV{OPENSHIFT_DIY_PORT};]
}

2015-12-02 15:19 GMT+03:00 sri :

> Look repo
>> 
>>  and
>> a working example is here .
>>
>
> You shouldn't be using Morbo like that, it's only a development server.
> For production use on a cloud platform you usually want the daemon or
> prefork commands.
>
>
> http://mojolicio.us/perldoc/Mojolicious/Guides/Cookbook#Built-in-web-server
>
> --
> sebastian
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Mojolicious" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mojolicious/NopgqpfO9Yc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> mojolicious+unsubscr...@googlegroups.com.
> To post to this group, send email to mojolicious@googlegroups.com.
> Visit this group at http://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Re: How to access a perl script from within Mojolicious ?

2015-11-30 Thread Алексей Орлов
$("#gene").autocomplete({
source: "<%= url_for('autocomlete_route_name') %>",
.

четверг, 15 октября 2015 г., 13:40:45 UTC+3 пользователь Aniruddha Pandit 
написал:
>
> Im creating a simple web app, and was going to use the Autocomplete Jquery 
> to allow for autocompleting a text field.
>
> From this script :
>
>
> Example :
>$(function() {
> $("#gene").autocomplete({
> source: "states.pl",
> minLength: 2,
> select: function(event, ui) {
> $('#state_id').val(ui.item.id);
> $('#abbrev').val(ui.item.abbrev);
> }
> });
>
>
> Now how do I get the script to run that source file, states.pl ? 
> Currently it is giving me a 404 Not Found error. I have tried putting the 
> script in the root, public and the folder in which the script for the form 
> exists to no avail.
>
> Thanks,
>
> Anir
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.