mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
pr comments addressed
* reverted install php * deleted databasebase from tablesdb
This commit is contained in:
@@ -267,6 +267,15 @@ class Install extends Action
|
||||
$input['_APP_DB_PORT'] = 3306;
|
||||
}
|
||||
|
||||
$database = $input['_APP_DB_ADAPTER'];
|
||||
if ($database === 'mongodb') {
|
||||
$input['_APP_DB_HOST'] = 'mongodb';
|
||||
$input['_APP_DB_PORT'] = 27017;
|
||||
} elseif ($database === 'mariadb') {
|
||||
$input['_APP_DB_HOST'] = 'mariadb';
|
||||
$input['_APP_DB_PORT'] = 3306;
|
||||
}
|
||||
|
||||
$templateForCompose = new View(__DIR__ . '/../../../../app/views/install/compose.phtml');
|
||||
$templateForEnv = new View(__DIR__ . '/../../../../app/views/install/env.phtml');
|
||||
$templateForCompose
|
||||
@@ -292,24 +301,6 @@ class Install extends Action
|
||||
Console::exit(1);
|
||||
}
|
||||
|
||||
// Copy MongoDB initialization files for replica set setup
|
||||
if ($database === 'mongodb') {
|
||||
$mongoInitScript = __DIR__ . '/../../../../mongo-init.js';
|
||||
$mongoEntrypoint = __DIR__ . '/../../../../mongo-entrypoint.sh';
|
||||
|
||||
if (file_exists($mongoInitScript)) {
|
||||
if (!copy($mongoInitScript, $this->path . '/mongo-init.js')) {
|
||||
Console::warning('Failed to copy mongo-init.js');
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists($mongoEntrypoint)) {
|
||||
if (!copy($mongoEntrypoint, $this->path . '/mongo-entrypoint.sh')) {
|
||||
Console::warning('Failed to copy mongo-entrypoint.sh');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$env = '';
|
||||
$stdout = '';
|
||||
$stderr = '';
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user