Skip to content

Commit

Permalink
[#82] adding confighooks postdeploy script to run collectstatic
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdash committed Dec 12, 2023
1 parent 689cc5d commit 0e096ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .platform/confighooks/postdeploy/01_collectstatic.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

source "$PYTHONPATH/activate" && {

cd /var/app/current/src/odm2cvs || exit 1;
echo "Collecting static files as part of AWS auto redeployment of this application due to configuration changes or auto-scaling:";
python manage.py collectstatic --noinput;
}

0 comments on commit 0e096ba

Please sign in to comment.