Skip to content

Commit 3640af6

Browse files
authored
fix(backend): Fix folder permissions after running migrations (#228)
1 parent 57a2c75 commit 3640af6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docker/backend/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ RUN \
110110
mkdir logs && \
111111
mkdir -p tmp/cache/models && \
112112
mkdir -p tmp/cache/persistent && \
113-
mkdir -p tmp/cache/views && \
114-
chown -R www-data:www-data /var/www/gib-potato/logs && \
115-
chown -R www-data:www-data /var/www/gib-potato/tmp
113+
mkdir -p tmp/cache/views
116114

117115
COPY ./docker/backend/run.sh /run.sh
118116
RUN chmod +x /run.sh

docker/backend/run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22

33
bin/cake migrations migrate
44

5+
chown -R www-data:www-data logs
6+
chown -R www-data:www-data tmp
7+
58
exec /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf

0 commit comments

Comments
 (0)