Skip to content

Commit b19ce15

Browse files
authored
Merge branch 'master' into PHRAS-4154_imageMagick_policies_fpm
2 parents 134f747 + e6699a2 commit b19ce15

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ export PHRASEANET_APP_PORT=8082
197197
```
198198

199199
If you want persit this change you can also save your change in a files named `env.local` or `.env.local`
200-
this files are git ignored and permit a stack customisation without git conflic generation
201-
see more about in stack management section
200+
201+
These files are git ignored and permit stack customization without git conflict generation.
202202

203203
If you are not interested in the development of Phraseanet, you can ignore everything in `.env` after the `DEV Purpose` part.
204204

@@ -215,7 +215,7 @@ of the database container before stopping the entire stack.
215215

216216
This script is useful if you are using the database container within the stack.
217217

218-
Of course before using it you need to chmod this file.
218+
see more here ![stack Management](doc/infra/compose/stack_management.md)
219219

220220
### Using a env.local method for custom .env values
221221

@@ -431,8 +431,3 @@ You can also download a testing pre installed Virtual Machine in OVA format here
431431

432432
https://www.phraseanet.com/download/
433433

434-
435-
436-
437-
438-

doc/infra/compose/stack_management.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Certainly! Here's a README for the script that provides an overview of its funct
44

55
# Docker Stack Management Script
66

7-
This script is designed to manage a Docker stack, particularly for Phraseanet applications. It provides functionalities to start, stop, check, and gather information about the Docker stack, including version checks, log viewing, and environment details.
7+
This script is an helper designed to manage a Phraseanet Docker compose stack by wrapping docker compose commande. It provides functionalities to start, stop, check, and gather information about the Docker stack, including docker and Phraseanet version checks, log viewing, and environment details.
88

99
## Features
1010

stack_management.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,15 @@ display_info() {
137137
echo
138138
fi
139139
else
140-
echo "Phraseanet container is not running. Cannot fetch version information."
140+
# Extract version from Version.php file
141+
local version_php_file="lib/Alchemy/Phrasea/Core/Version.php"
142+
if [ -f "$version_php_file" ]; then
143+
local version_from_file=$(grep -o "private \$number = '[^']*" "$version_php_file" | sed "s/private \$number = '//;s/'//")
144+
echo "Version from Version.php: $version_from_file"
145+
else
146+
echo "Version.php file not found."
147+
fi
148+
echo "Phraseanet container is not running. Cannot fetch version information from container."
141149
echo
142150
fi
143151
else

0 commit comments

Comments
 (0)