Skip to content

Commit 795d061

Browse files
committed
PHON-5: Whopsy, missing file for startting servers hidden by gitignore
1 parent 7c5d150 commit 795d061

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ php.ini
4545
!.travis.scripts/*
4646

4747

48+
!scripts
49+
4850
# MKDocs
4951
!docs
5052
site

scripts/start-servers.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
require __DIR__ . "/" . "../tests/utils/orchestration.php";
3+
4+
5+
$host = "http://localhost:8889";
6+
if ($_ENV && isset($_ENV["ORCHESTRATION"])) {
7+
$host = $_ENV["ORCHESTRATION"];
8+
}
9+
10+
$orch = new Mongo\Orchestration($host);
11+
12+
$orch->stopAll();
13+
14+
$standalone = $orch->startStandalone();
15+
printf("Standalone server running on: %s\n", $standalone);
16+

0 commit comments

Comments
 (0)