Skip to content

Commit

Permalink
Create post-merge.sh (#561)
Browse files Browse the repository at this point in the history
It imakes easy to execute 1 sh script after big merge where other developer changed Data-Object or created migration
  • Loading branch information
kaurov authored Dec 21, 2023
1 parent 2ef2505 commit 333a49c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions bin/post-merge.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
# to be able to run this script, execute the following:
# chmod ug+x bin/*

# Rebuild classes (assuming pimcore:deployment:classes-rebuild)
echo "Rebuilding classes..."
php bin/console pimcore:deployment:classes-rebuild --create-classes

echo "Database migrations..."
php bin/console doctrine:migrations:migrate
# @todo configure it for all used bundeles

echo "Composer install..."
composer install

# Navigate to the project root directory
#cd "$(dirname "$0")/.."
# Rebuild JavaScript files
echo "Rebuilding JavaScript files..."
#cd bin
#npm install
#npm run build

# Rebuild Twig files
echo "Rebuilding Twig files..."
php bin/console cache:clear
php bin/console assetic:dump

echo "Post-merge task is Done."

0 comments on commit 333a49c

Please sign in to comment.