Mojolicious::Plugin::Mount(3pm) User Contributed Perl Documentation Mojolicious::Plugin::Mount(3pm)NAME
Mojolicious::Plugin::Mount - Application mount plugin
SYNOPSIS
# Mojolicious
my $route = $self->plugin(Mount => {'/prefix' => '/home/sri/myapp.pl'});
# Mojolicious::Lite
my $route = plugin Mount => {'/prefix' => '/home/sri/myapp.pl'};
# Adjust the generated route
my $example = plugin Mount => {'/example' => '/home/sri/example.pl'};
$example->to(message => 'It works great!');
# Mount application with host
plugin Mount => {'mojolicio.us' => '/home/sri/myapp.pl'};
# Host and path
plugin Mount => {'mojolicio.us/myapp' => '/home/sri/myapp.pl'};
# Or even hosts with wildcard subdomains
plugin Mount => {'*.mojolicio.us/myapp' => '/home/sri/myapp.pl'};
DESCRIPTION
Mojolicious::Plugin::Mount is a plugin that allows you to mount whole Mojolicious applications.
The code of this plugin is a good example for learning to build new plugins, you're welcome to fork it.
METHODS
Mojolicious::Plugin::Mount inherits all methods from Mojolicious::Plugin and implements the following new ones.
"register"
my $route = $plugin->register($app, $conf);
Mount Mojolicious application.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojolicious::Plugin::Mount(3pm)
Check Out this Related Man Page
Mojolicious::Plugin::HeaderCondition(3pm) User Contributed Perl Documentation Mojolicious::Plugin::HeaderCondition(3pm)NAME
Mojolicious::Plugin::HeaderCondition - Header condition plugin
SYNOPSIS
# Mojolicious
$self->plugin('HeaderCondition');
$self->routes->get('/:controller/:action')
->over(headers => {Referer => qr/example.com/});
# Mojolicious::Lite
plugin 'HeaderCondition';
get '/' => (headers => {Referer => qr/example.com/}) => sub {...};
# All headers need to match
$self->routes->get('/:controller/:action')->over(headers => {
'X-Secret-Header' => 'Foo',
Referer => qr/example.com/
});
# The "agent" condition is a shortcut for the "User-Agent" header
get '/' => (agent => qr/Firefox/) => sub {...};
# The "host" condition is a shortcut for the detected host
get '/' => (host => qr/mojolicio.us/) => sub {...};
DESCRIPTION
Mojolicious::Plugin::HeaderCondition is a routes condition for header based routes.
This is a core plugin, that means it is always enabled and its code a good example for learning to build new plugins, you're welcome to
fork it.
METHODS
Mojolicious::Plugin::HeaderCondition inherits all methods from Mojolicious::Plugin and implements the following new ones.
"register"
$plugin->register($app);
Register condition in Mojolicious application.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojolicious::Plugin::HeaderCondition(3pm)
Hey, need to mount the following below, and new ish to unix.. what is the process.. thanks :b:
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SEAGATE-ST973401LC-0001 cyl 51057 alt 2 hd 4 sec 702>
/pci@1d,700000/scsi@4/sd@0,0 (5 Replies)
Hi guys,
I have this problem ,
One of our client's hdd went down and we cannot boot up the machine , I've installed a new hdd with a fresh copy of SCO 5.0.6 same as the one in the old HDD, i think the data still good in the old HDD.
My question!!!
How can i access the data from the fresh... (4 Replies)
I have been working to install gparted on Centos. Compiling gparted required a number of thing I didn't have, so I downloaded and comilied them as root. After a lot of frustration, I tried using a sript to do it in another directory and removed all of the previously compiled code which was in... (3 Replies)
./myapp | split -b 10m -d -a 1 - "myappLog"
here split command is reading the input from the output of myapp and it will write the text in to file where in each file size is 10MB and it will create upto 10 files.
I have observed split is flushing the data for every 4096 bytes. if my... (7 Replies)
Hi Guy's
I have mount point called /app with size 10 GB from EMC SAN
/dev/dsk/emcpower2g 9.6G 9.8M 9.5G 1% /app
I have expanded the size from SAN level to be 20 GB
But the mount point still is showing 10 GB
Can anyone advice us how to can I expand the new space on /app... (4 Replies)
Does anyone would know a good tutorial for someone with basic linux/unix knowledge in order to build and setup a home website server?
1) First: I would like a step by step practical how to, with an example, and a good introduction to more detailed theory.
2) Second : What is the best and more... (3 Replies)
Hello,
We just got a rx4640 that is running on:
HP-UX B.11.31 U ia64 2426088954 unlimited-user license
There is a plenty of space in it and we would like to use it for storage. I can access with ftp and place the files in there but i need to mount the file system in every PC that is running... (7 Replies)
Hi folks,
because of disk space problem my root is almost full..The root is mounted on rpool and i want to move /app on a new disk, is that possible without compromising any link?How can i do that?
I use solaris 10
Thank you in advance,
Matt
---------- Post updated at 04:36 PM... (8 Replies)
Hi Guys.
I am about to install the Enterprise Controller of Ops Center. I need to know on a 200gb Hard drive what the best possible Mount point layout?
I know that /var is suposed to be around 100gb and swap size should be around 6gb ?
What about /opt , /tmp and other mount point sizes?
... (5 Replies)
Platform : RHEL 5.8
I have text file called myapplication.log . In this file, I have around 800 lines which start with the followng three strings
PWRBRKER-3493
PWRBRKER-7834
SCHEDULER-ERROR
How can I delete these lines in one go ? (13 Replies)
I have the need to Mount one of my volumes (All machines are mac) onto all of the machines in the lab from time to time. At the moment I'm using SSH to tunnel into each machine and then send a command to the remote machine to mount my volume using AFP.
This seems convoluted to me. Is there a... (3 Replies)
Hi ALL
I am unable to do mount bind to connect new storage
Once I run the below commands both file systems were empty
Code:
mount --bind /prod/OpenCSS /var/lib/test
Code:
echo "/prod/OpenCSS /var/lib/pgsql bind bind 0 0" >> /etc/fstab
Please use code tags for code and data (9 Replies)
Hi Guys,
This one has got me completely baffled and after some fairly lengthy searching online and in the forum, I think I should share this with you - after all someone is bound to have seen this?
So the story so far, I've built a couple of RHEL 7.5 servers, these are HP DL360 G10's with two... (4 Replies)