mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-07 01:54:27 +00:00
PHRAS-4149 stack management (#4607)
This commit is contained in:
11
README.md
11
README.md
@@ -197,8 +197,8 @@ export PHRASEANET_APP_PORT=8082
|
||||
```
|
||||
|
||||
If you want persit this change you can also save your change in a files named `env.local` or `.env.local`
|
||||
this files are git ignored and permit a stack customisation without git conflic generation
|
||||
see more about in stack management section
|
||||
|
||||
These files are git ignored and permit stack customization without git conflict generation.
|
||||
|
||||
If you are not interested in the development of Phraseanet, you can ignore everything in `.env` after the `DEV Purpose` part.
|
||||
|
||||
@@ -215,7 +215,7 @@ of the database container before stopping the entire stack.
|
||||
|
||||
This script is useful if you are using the database container within the stack.
|
||||
|
||||
Of course before using it you need to chmod this file.
|
||||
see more here 
|
||||
|
||||
### Using a env.local method for custom .env values
|
||||
|
||||
@@ -431,8 +431,3 @@ You can also download a testing pre installed Virtual Machine in OVA format here
|
||||
|
||||
https://www.phraseanet.com/download/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -4,7 +4,7 @@ Certainly! Here's a README for the script that provides an overview of its funct
|
||||
|
||||
# Docker Stack Management Script
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
## Features
|
||||
|
||||
|
@@ -137,7 +137,15 @@ display_info() {
|
||||
echo
|
||||
fi
|
||||
else
|
||||
echo "Phraseanet container is not running. Cannot fetch version information."
|
||||
# Extract version from Version.php file
|
||||
local version_php_file="lib/Alchemy/Phrasea/Core/Version.php"
|
||||
if [ -f "$version_php_file" ]; then
|
||||
local version_from_file=$(grep -o "private \$number = '[^']*" "$version_php_file" | sed "s/private \$number = '//;s/'//")
|
||||
echo "Version from Version.php: $version_from_file"
|
||||
else
|
||||
echo "Version.php file not found."
|
||||
fi
|
||||
echo "Phraseanet container is not running. Cannot fetch version information from container."
|
||||
echo
|
||||
fi
|
||||
else
|
||||
|
Reference in New Issue
Block a user