We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e338a1 commit 2f00678Copy full SHA for 2f00678
2 files changed
Procfile
@@ -1 +1 @@
1
-web: php bin/server.php --no-io
+web: php bin/server.php --no-io --port=$PORT
bin/server.php
@@ -8,11 +8,18 @@
8
require "vendor/autoload.php";
9
10
$noFsIO = false;
11
+$port = 15155;
12
13
foreach($argv AS $arg){
14
if($arg === '--no-io'){
15
$noFsIO = true;
16
}
17
+ elseif(strpos($arg, '=') !== false){
18
+ list($name, $value) = explode('=', $arg);
19
+ if($name === '--port'){
20
+ $port = $value;
21
+ }
22
23
24
25
$app = new App($noFsIO);
0 commit comments