Skip to content

Commit

Permalink
Added /var/app/log config
Browse files Browse the repository at this point in the history
  • Loading branch information
tdethier committed Dec 12, 2024
1 parent 2882fc6 commit 24e79a4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .platform/hooks/postdeploy/01_log_create_directory.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# Only run on the leader instance
if [ "$EB_IS_COMMAND_LEADER" == "true" ]; then
echo "Preparing a new directory for Django logs..."
docker exec -t $(docker ps -a -q | head -n 1) mkdir -p /var/app/log
fi
7 changes: 7 additions & 0 deletions .platform/hooks/postdeploy/02_log_change_permissions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# Only run on the leader instance
if [ "$EB_IS_COMMAND_LEADER" == "true" ]; then
echo "Changing permissions on the Django logs directory..."
docker exec -t $(docker ps -a -q | head -n 1) chmod g+s /var/app/log
fi
File renamed without changes.

0 comments on commit 24e79a4

Please sign in to comment.