NAME

cpangit-server - serve a CPAN tree from a git branch, or all CPAN trees in the git repo

USAGE

# Serve all trees
cpangit-server [--git-dir=PATH] [OPTIONS] MOJO_COMMAND...

# Serve one branch
cpangit-server --tree=BRANCH_NAME [OPTIONS] MOJO_COMMAND...

This command acts as a CPAN file server, either serving all the repo's branches (and tags and SHA-1 hashes) or serving a single specified branch. OPTIONS are described below. MOJO_OPTIONS control how the server is launched, and are described by `mojo --help`.

OPTIONS

--git-dir=PATH

Path to the Git repository of CPAN::InGit. The default is GIT_DIR from the environment, or any git repo above "."

--path-base=PATH (-p PATH)

Base URL from which to serve the branches or single tree. Default is '/'.

--tree=BRANCH_OR_TAG_OR_SHA1 (-t BRANCH)

Serve only a single Git tree from the root path.

--branch-head-only

When serving all branches, this prevents serving any Git tree which is not a current branch head. For example, /TAG/... and /SHA-1/... return 404 when this option is enabled.

VERSION

version 0.002

AUTHOR

Michael Conrad <mike@nrdvana.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2025 by Michael Conrad, and IntelliTree Solutions.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.