mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
readd: local source mounts.
This commit is contained in:
@@ -67,6 +67,9 @@ $hostPath = rtrim($this->getParam('hostPath', ''), '/');
|
||||
- traefik.http.routers.appwrite_api_https.service=appwrite_api
|
||||
- traefik.http.routers.appwrite_api_https.tls=true
|
||||
volumes:
|
||||
<?php if ($version === 'local' && !empty($hostPath)): ?>
|
||||
- <?php echo $hostPath; ?>:/usr/src/code:rw
|
||||
<?php endif; ?>
|
||||
- appwrite-uploads:/storage/uploads:rw
|
||||
- appwrite-imports:/storage/imports:rw
|
||||
- appwrite-cache:/storage/cache:rw
|
||||
|
||||
@@ -496,7 +496,7 @@ class Install extends Action
|
||||
$database = $input['_APP_DB_ADAPTER'] ?? 'mongodb';
|
||||
|
||||
$version = $isLocalInstall
|
||||
? 'latest'
|
||||
? 'local'
|
||||
: (defined('APP_VERSION_STABLE') ? APP_VERSION_STABLE : 'latest');
|
||||
|
||||
$assistantKey = (string) ($input['_APP_ASSISTANT_OPENAI_API_KEY'] ?? '');
|
||||
@@ -509,7 +509,8 @@ class Install extends Action
|
||||
->setParam('organization', $organization)
|
||||
->setParam('image', $image)
|
||||
->setParam('database', $database)
|
||||
->setParam('enableAssistant', $enableAssistant);
|
||||
->setParam('enableAssistant', $enableAssistant)
|
||||
->setParam('hostPath', $this->hostPath);
|
||||
|
||||
$templateForEnv->setParam('vars', $input);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user