updates 33.2 112
This commit is contained in:
@@ -41,6 +41,14 @@ if [ "$SYNC_ONLY" = true ]; then
|
||||
fi
|
||||
|
||||
echo "Restarting soleprint on server..."
|
||||
ssh "$SERVER" "cd $REMOTE_DIR && docker compose up -d --build"
|
||||
# The compose file runs the container as ${UID:-1000}:${GID:-1000} and bind-mounts
|
||||
# the deployed tree at /app. Those have to be the ids that OWN the tree, and they
|
||||
# are not 1000 on every host — mcrn.ar's user is 1001. Without this the container
|
||||
# starts fine and then 500s on the first file it reads, which reads as an app bug
|
||||
# rather than a permissions one.
|
||||
#
|
||||
# `env` rather than a prefix assignment: UID is readonly in bash, so
|
||||
# `UID=$(id -u) docker ...` fails outright.
|
||||
ssh "$SERVER" "cd $REMOTE_DIR && env UID=\$(id -u) GID=\$(id -g) docker compose up -d --build"
|
||||
|
||||
echo "Deploy complete"
|
||||
|
||||
Reference in New Issue
Block a user