Rexfile - Rex task configuration for CPANTesters API application
# Deploy the latest API rex deploy
This file defines all the Rex tasks used to deploy this application.
You must have already configured a user using the cpantesters-deploy repository, or been given an SSH key to use this Rexfile.
Rex
rex deploy rex -E vm deploy
Deploy the CPAN Testers API from CPAN. Do this task after releasing a version of CPAN::Testers::API to CPAN.
rex -E vm deploy_dev
Deploy a pre-release, development version of the API. Use this to install to your dev VM to test things. Will run `dzil build` locally to build the tarball, then sync that tarball to the remote and install using `cpanm`.
rex deploy_service
Deploy the service files that run the daemons.
rex restart
Restart all the services.
Ensure a sudo password is set. Use this at the start of any task that requires sudo.
sudo
To install CPAN::Testers::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPAN::Testers::API
CPAN shell
perl -MCPAN -e shell install CPAN::Testers::API
For more information on module installation, please visit the detailed CPAN module installation guide.