Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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 ![stack Management](doc/infra/compose/stack_management.md)

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

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

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






2 changes: 1 addition & 1 deletion doc/infra/compose/stack_management.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 9 additions & 1 deletion stack_management.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading