mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Merge branch 'main' into update-migration-runtime-enums
This commit is contained in:
2 files changed
+20
-1
No files matched your search
@@ -45,6 +45,12 @@ COPY ./dev /usr/src/code/dev
|
||||
COPY ./mongo-init.js /usr/src/code/mongo-init.js
|
||||
COPY ./mongo-entrypoint.sh /usr/src/code/mongo-entrypoint.sh
|
||||
|
||||
# Add Installer Templates
|
||||
COPY ./app/views/install /usr/local/share/appwrite/app/views/install
|
||||
COPY ./docker-compose.yml /usr/local/share/appwrite/docker-compose.yml
|
||||
COPY ./mongo-init.js /usr/local/share/appwrite/mongo-init.js
|
||||
COPY ./mongo-entrypoint.sh /usr/local/share/appwrite/mongo-entrypoint.sh
|
||||
|
||||
# Set Volumes
|
||||
RUN mkdir -p /storage/uploads && \
|
||||
mkdir -p /storage/imports && \
|
||||
|
||||
@@ -1393,7 +1393,20 @@ class Install extends Action
|
||||
if ($suffix !== '' && $suffix[0] !== '/') {
|
||||
$suffix = '/' . $suffix;
|
||||
}
|
||||
return dirname(__DIR__, 4) . $suffix;
|
||||
|
||||
$roots = [
|
||||
dirname(__DIR__, 4),
|
||||
'/usr/local/share/appwrite',
|
||||
];
|
||||
|
||||
foreach ($roots as $root) {
|
||||
$path = $root . $suffix;
|
||||
if (file_exists($path)) {
|
||||
return $path;
|
||||
}
|
||||
}
|
||||
|
||||
return $roots[0] . $suffix;
|
||||
}
|
||||
|
||||
protected function applyLocalPaths(bool $isLocalInstall, bool $force = false): void
|
||||
|
||||
Reference in new issue
Block a user