Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Fix switching to 2.5 from 3.0 #17

Draft
wants to merge 1 commit into
base: release/v2.5
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion docker-compose.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@
#set -x;

# Git: Untracked Files Removal
git clean -df; # Help to switch between eZ Platform v2 and v3
#git clean -df;

# Post-Version-Switch Cleaning
EZ_VERSION="$(git describe --tags | cut -d '-' -f 1;)";
echo "eZ Platform $EZ_VERSION";
if [[ "$EZ_VERSION" =~ '3.0' ]]; then
rm -rf app/ web/ var/logs/;
elif [[ "$EZ_VERSION" =~ '2.5' ]]; then
rm -rf .env config/ public/ var/log/;
fi;

# eZ Platform: Cache and Logs Removal
rm -rf var/cache/dev/ var/logs/*.log;
Expand Down