Changeset 40996 for branches/eam_branches/ipp-20191011
- Timestamp:
- Oct 28, 2019, 4:15:50 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20191011/Nebulous/t/conf/startup.pl.in
r24372 r40996 5 5 use lib qw( @ServerRoot@ ); 6 6 7 use ModPerl::Util (); #for CORE::GLOBAL::exit 8 9 use Apache2::RequestRec (); 10 use Apache2::RequestIO (); 11 use Apache2::RequestUtil (); 12 13 use Apache2::ServerRec (); 14 use Apache2::ServerUtil (); 15 use Apache2::Connection (); 16 use Apache2::Log (); 17 18 use APR::Table (); 19 20 use ModPerl::Registry (); 21 22 use Apache2::Const -compile => ':common'; 23 use APR::Const -compile => ':common'; 24 25 use Apache::SOAP; 26 7 27 use Apache::DBI; 8 28 use DBI; … … 10 30 use Nebulous::Server::Apache; 11 31 use Nebulous::Server; 12 use Test::Nebulous; 32 33 # do not inherit here, let's be explicit 34 # use Test::Nebulous; 35 36 # EAM : making this match Nebulous-Server/docs/apache2-mod_perl-startup.pl: 37 38 # use the real mysql server: 39 #my $dsn = 'DBI:mysql:database=nebulous:host=localhost,mysql_socket=8500'; 40 #my $dbuser = 'nebulous'; 41 #my $dbpasswd = ''; 42 43 # use the test mysql server (defined in Test::Nebulous) 44 my $dsn = 'DBI:mysql:database=test:host=localhost:mysql_socket=/var/run/mysqld/mysqld.sock'; 45 my $dbuser = 'test'; 46 my $dbpasswd = ''; 13 47 14 48 #$Apache::DBI::DEBUG = 1; 15 Apache::DBI->connect_on_init( $NEB_DB, $NEB_USER, $NEB_PASS );16 Apache::DBI->setPingTimeOut($ NEB_DB, 10);49 #Apache::DBI->connect_on_init( $NEB_DB, $NEB_USER, $NEB_PASS ); 50 Apache::DBI->setPingTimeOut($dsn, 10); 17 51 18 52 my $config = Nebulous::Server::Config->new( … … 22 56 $config->add_db( 23 57 dbindex => 0, 24 dsn => $ NEB_DB,25 dbuser => $ NEB_USER,26 dbpasswd => $ NEB_PASS,58 dsn => $dsn, 59 dbuser => $dbuser, 60 dbpasswd => $dbpasswd, 27 61 ); 28 #$config->add_db(29 # dbindex => 1,30 # dsn => 'DBI:mysql:database=nebulous1:host=localhost',31 # dbuser => $dbuser,32 # dbpasswd => $dbpasswd,33 #);34 62 35 63 Nebulous::Server::SOAP->new_on_init($config);
Note:
See TracChangeset
for help on using the changeset viewer.
