NAME

mccs - start a static file server using Plack::App::MCCS

SYNOPSIS

# on the command line

# start serving current directory on port 5000
mccs

# start serving a directory on port 80 using Starman
mccs -s Starman --listen :80 /some/directory

# serve without minification, compression and etag creation
mccs --no-minify --no-compress --no-etag

DESCRIPTION

mccs provides a quick and easy way to start serving files from a directory using Plack::App::MCCS. It loads MCCS with Plack::Runner, so it works just like plackup and accepts all options plackup accepts. Use whatever Plack handler you like.

Just like MCCS, all options are turned on by default, so mccs will attempt to minify and compress appropriate files, and create ETags. You can disable this with --no-minify, --no-compress and --no-etag, respectively.

BUGS AND LIMITATIONS

Please report any bugs or feature requests to bug-Plack-App-MCCS@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Plack-App-MCCS.

SEE ALSO

Plack::App::MCCS, Plack::Middleware::MCCS, Plack::Runner, plackup.

AUTHOR

Ido Perlmuter <ido@ido50.net>

LICENSE AND COPYRIGHT

Copyright (c) 2011-2023, Ido Perlmuter ido@ido50.net.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.