Skip to content

Commit fb9bb89

Browse files
lukasNo1christianruhstaller
authored andcommitted
Add craft3 migration script to run on deploy
1 parent b3790ee commit fb9bb89

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.scripts/recipes/craft3/golive.pre.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ executeSSH "ln -s ../../_data/storage $APPROOT/deploy/backend/storage"
1111

1212
# Replace the placeholder with the db pw for the environment
1313
executeSSH "sed -i \"s/@DB_PASSWORD/$DB_PASSWORD/g\" $APPROOT/deploy/backend/config/db.php" > /dev/null
14+
executeSSH "APPENV=$ENV $DEPLOY_PHP_BINARY $APPROOT/deploy/backend/craft migrate/all"
1415
executeSSH "APPENV=$ENV $DEPLOY_PHP_BINARY $APPROOT/deploy/backend/craft project-config/apply"
1516
executeSSH "APPENV=$ENV $DEPLOY_PHP_BINARY $APPROOT/deploy/backend/craft blitz/cache/clear"
1617
executeSSH "APPENV=$ENV $DEPLOY_PHP_BINARY $APPROOT/deploy/backend/craft crafter/cache/clear-template"

0 commit comments

Comments
 (0)