mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 15:28:06 +02:00
Update filesystem paths in bin/logs and docs
This commit is contained in:
parent
240cd21576
commit
fdec084056
2 changed files with 14 additions and 5 deletions
10
bin/logs
10
bin/logs
|
@ -15,6 +15,8 @@ if [[ ! -d "$TOOLKIT_ROOT/bin" ]] || [[ ! -d "$TOOLKIT_ROOT/config" ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
source "$TOOLKIT_ROOT/lib/shared-functions.sh"
|
||||
|
||||
DEFAULT_TAIL_LINES=20
|
||||
ALL_SERVICES=(chat clsi contacts docstore document-updater filestore git-bridge \
|
||||
mongo notifications real-time redis spelling tags track-changes web \
|
||||
|
@ -127,8 +129,13 @@ function show_compose_logs() {
|
|||
}
|
||||
|
||||
function show_sharelatex_logs() {
|
||||
local base_path=/var/log/overleaf
|
||||
if [[ "$IMAGE_VERSION_MAJOR" -lt 5 ]]; then
|
||||
base_path=/var/log/sharelatex
|
||||
fi
|
||||
|
||||
local service="$1"
|
||||
local log_path="/var/log/sharelatex/$service.log"
|
||||
local log_path="${base_path}/$service.log"
|
||||
local flags=()
|
||||
|
||||
if [[ $FOLLOW == "true" ]]; then
|
||||
|
@ -152,4 +159,5 @@ function show_sharelatex_logs() {
|
|||
}
|
||||
|
||||
parse_args "$@"
|
||||
read_image_version
|
||||
show_logs
|
||||
|
|
|
@ -45,11 +45,12 @@ convenient scripts to automate common tasks:
|
|||
Inside the overleaf container, the Overleaf software runs as a set of micro-services, managed by `runit`. Some of the more interesting files inside the container are:
|
||||
|
||||
- `/etc/service/`: initialisation files for the microservices
|
||||
- `/etc/sharelatex/settings.coffee`: unified settings file for the microservices
|
||||
- `/var/log/sharelatex/`: logs for each microservice
|
||||
- `/var/www/sharelatex/`: code for the various microservices
|
||||
- `/var/lib/sharelatex/`: the mount-point for persistent data (corresponds to the directory indicated by `OVERLEAF_DATA_PATH` on the host)
|
||||
- `/etc/overleaf/settings.js`: unified settings file for the microservices
|
||||
- `/var/log/overleaf/`: logs for each microservice
|
||||
- `/var/www/overleaf/`: code for the various microservices
|
||||
- `/var/lib/overleaf/`: the mount-point for persistent data (corresponds to the directory indicated by `OVERLEAF_DATA_PATH` on the host)
|
||||
|
||||
Before Server Pro/Community Edition version 5.0, the paths used the ShareLaTeX brand.
|
||||
|
||||
## The MongoDB and Redis Containers
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue