The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

pinto-server - provide a web interface to a Pinto repository

VERSION

version 0.026

SYNOPSIS

  pinto-server --repos=/path/to/repository [--daemon] [--port=N]

DESCRIPTION

Before running pinto-server you must first create a Pinto repository. See pinto-admin for instructions on that.

pinto-server provides a web API to a Pinto repository. Remote clients (like pinto-remote) can use this API to add distributions, remove packages, and list the contents of the Pinto repository. In addition, pinto-server exposes the contents of your repository, so you can use it as the source of distributions for cpan or cpanm.

ARGUMENTS

--repos=PATH

The path to the Pinto repository you wish to serve.

OPTIONS

--daemon

Tells pinto-server to fork and run in a separate process.

--port=N

Sets the port number for the server to listen on. Default is 3000.

DEPLOYMENT

pinto-server can be run as a stand-alone server as shown in the "SYNOPSIS". However, this may not perform well under heavy load.

pinto-server is also PSGI compatible, so if you need a more powerful robust server, you can run it under Plack like this:

  $> plackup [OPTIONS] /path/to/pinto-server

CAVEATS

If you are running pinto-server and have configured Pinto to use a VCS-based store, such as Pinto::Store::VCS::Svn or Pinto::Store::VCS::Git, then you must not mess with the VCS directly (at least not the part of the VCS that holds the Pinto repository). This is because pinto-server only initializes the working copy of the repository at startup. Thereafter, it assumes that it is the only actor affecting the Pinto repository within the VCS. If you start modifying Pinto's area of the VCS directly, then the working copy for pinto-server will become out of date and conflicts will happen.

LIMITATIONS

pinto-server speaks HTTP, but does not actually serve HTML. At the moment, it is geared toward command line tools like pinto-remote so it just returns plain text. This will probably change as pinto-server evolves into a real web application.

AUTHOR

Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Imaginative Software Systems.

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