Gitignore updates
This commit is contained in:
parent
613bb2194a
commit
be93d3616a
30
Dockerfile
30
Dockerfile
|
|
@ -75,16 +75,26 @@ RUN (crontab -l; echo "* * * * * cd /var/www/html;/usr/local/bin/php bin/grav sc
|
||||||
|
|
||||||
# Some folders will always be updated (e.g. logs) by Grav app, so they can be ignored from the Git repo
|
# Some folders will always be updated (e.g. logs) by Grav app, so they can be ignored from the Git repo
|
||||||
RUN { \
|
RUN { \
|
||||||
echo '### Folders that need to exist but their contents are written by the server on the fly' \
|
echo '### Folders that need to exist but their contents are written by the server on the fly'; \
|
||||||
echo '# Assets' \
|
echo '# Assets'; \
|
||||||
echo 'assets/*' \
|
echo 'assets/*'; \
|
||||||
echo '!assets/.gitkeep' \
|
echo '!assets/.gitkeep'; \
|
||||||
echo '# Images' \
|
echo '# Images'; \
|
||||||
echo 'images/*' \
|
echo 'images/*'; \
|
||||||
echo '!images/.gitkeep' \
|
echo '!images/.gitkeep'; \
|
||||||
echo '# Logs' \
|
echo '# Logs'; \
|
||||||
echo 'logs/*' \
|
echo 'logs/*'; \
|
||||||
echo '!logs/.gitkeep' \
|
echo '!logs/.gitkeep'; \
|
||||||
|
echo '# User data'; \
|
||||||
|
echo 'user/data/*'; \
|
||||||
|
echo '!user/data/.gitkeep'; \
|
||||||
|
echo '###'; \
|
||||||
|
echo ''; \
|
||||||
|
echo '# Ignore these completely'; \
|
||||||
|
echo 'backup'; \
|
||||||
|
echo 'cache'; \
|
||||||
|
echo 'logs'; \
|
||||||
|
echo 'tmp'; \
|
||||||
} > /var/www/html/.gitignore
|
} > /var/www/html/.gitignore
|
||||||
|
|
||||||
# Return to root user
|
# Return to root user
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue