Skip to content

Commit

Permalink
fix(backend): Fix folder permissions after running migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric committed Dec 30, 2024
1 parent 57a2c75 commit 4e13318
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions docker/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ RUN \
mkdir logs && \
mkdir -p tmp/cache/models && \
mkdir -p tmp/cache/persistent && \
mkdir -p tmp/cache/views && \
chown -R www-data:www-data /var/www/gib-potato/logs && \
chown -R www-data:www-data /var/www/gib-potato/tmp
mkdir -p tmp/cache/views

COPY ./docker/backend/run.sh /run.sh
RUN chmod +x /run.sh
Expand Down
3 changes: 3 additions & 0 deletions docker/backend/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

bin/cake migrations migrate

chown -R www-data:www-data logs
chown -R www-data:www-data tmp

exec /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf

0 comments on commit 4e13318

Please sign in to comment.