Skip to content

Commit c9ea063

Browse files
authored
Allow run server with composer vendor out of application (#1025)
1 parent 253d8ae commit c9ea063

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/bootstrap.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
|
3838
*/
3939

40-
if (! is_file($autoload_file = $basePath.'/vendor/autoload.php')) {
40+
$vendorDir = $_ENV['COMPOSER_VENDOR_DIR'] ?: "{$basePath}/vendor";
41+
42+
if (! is_file($autoload_file = "{$vendorDir}/autoload.php")) {
4143
Octane::writeError("Composer autoload file was not found. Did you install the project's dependencies?");
4244

4345
exit(10);

0 commit comments

Comments
 (0)