CPAN-Testers-Backend

 view release on metacpan or  search on metacpan

Rexfile  view on Meta::CPAN

        };
        for my $key ( keys %cron_entry ) {
            cron_entry $key, %{ $cron_entry{ $key } }, ensure => 'present';
        }

        Rex::Logger::info( 'Ensuring user profile is correct' );
        for my $file ( qw( .profile .bash_profile ) ) {
            append_if_no_such_line '/home/cpantesters/' . $file,
                'export BEAM_PATH=$HOME/etc/container';
            append_if_no_such_line '/home/cpantesters/' . $file,
                'export BEAM_MINION="mysql+dsn+dbi:mysql:mysql_read_default_file=~/.cpanstats.cnf;mysql_read_default_group=application"';
        }

        Rex::Logger::info( 'Restarting services' );
        run 'sv restart ~/service/minion';
    };

=head2 disable

    rex -E vm disable

etc/container/common.yml  view on Meta::CPAN

        - pid,perror

schema:
    $class: CPAN::Testers::Schema
    $method: connect_from_config

metabase_dbh:
    $class: DBI
    $method: connect
    $args:
        - 'dbi:mysql:mysql_read_default_file=~/.cpanstats.cnf;mysql_read_default_group=application;database=metabase'
        - ~
        - ~
        - AutoCommit: 1
          RaiseError: 1

etc/runit/minion/run  view on Meta::CPAN

#!/bin/bash
. /opt/local/perlbrew/etc/bashrc
eval $( perl -Mlocal::lib )

export MOJO_HOME=$(pwd)
export MOJO_LOG_SHORT=1 # Remove timestamps from Mojo, added by log svc
export BEAM_PATH=$HOME/etc/container
export BEAM_MINION='mysql+dsn+dbi:mysql:mysql_read_default_file=~/.cpanstats.cnf;mysql_read_default_group=application'
export MOJO_PUBSUB_EXPERIMENTAL=1 # Shut up

exec beam minion worker 2>&1



( run in 0.400 second using v1.01-cache-2.11-cpan-05444aca049 )