diff options
author | Tatsuhiko Miyagawa <miyagawa@gmail.com> | 2018-06-07 15:34:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-07 15:34:00 -0700 |
commit | 0bb7d0366b3c15419eb5f1dafcfe9303b03dc421 (patch) | |
tree | 11bd803515afb891ada93be97f95dca2152f6749 | |
parent | 586fbdc774eb90f3ab3800242f0334afa43c44db (diff) | |
parent | b49bec9273e0ae185d42ff5da8ebc90528b0adf5 (diff) | |
download | carton-0bb7d0366b3c15419eb5f1dafcfe9303b03dc421.tar.gz |
Merge pull request #234 from Grinnz/patch-1
Document bootstrapping and that carton exec is not required
-rw-r--r-- | lib/Carton.pm | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/Carton.pm b/lib/Carton.pm index e9abb90..289e51c 100644 --- a/lib/Carton.pm +++ b/lib/Carton.pm @@ -25,6 +25,10 @@ Carton - Perl module dependency manager (aka Bundler for Perl) > carton install > carton exec starman -p 8080 myapp.psgi + # carton exec is optional + > perl -Ilocal/lib/perl5 local/bin/starman -p 8080 myapp.psgi + > PERL5LIB=/path/to/local/lib/perl5 /path/to/local/bin/starman -p 8080 myapp.psgi + =head1 AVAILABILITY Carton only works with perl installation with the complete set of core @@ -32,8 +36,9 @@ modules. If you use perl installed by a vendor package with modules stripped from core, Carton is not expected to work correctly. Also, Carton requires you to run your command/application with -C<carton exec> command, which means it's difficult or impossible to -run in an embedded perl use case such as mod_perl. +C<carton exec> command or to include the I<local/lib/perl5> directory +in your Perl library search path (using C<PERL5LIB>, C<-I>, or +L<lib>). =head1 DESCRIPTION @@ -134,6 +139,13 @@ C<--deployment> option, you can avoid querying for a database like CPAN Meta DB or downloading files from CPAN mirrors upon deployment time. +As of Carton v1.0.32, the bundle also includes a package index +allowing you to simply use L<cpanm> (which has a +L<standalone version|App::cpanminus/"Downloading the standalone executable">) +instead of installing Carton on a remote machine. + + > cpanm -L local --from vendor/cache --installdeps --notest --quiet . + =head1 PERL VERSIONS When you take a snapshot in one perl version and deploy on another |