Skip to content

Commit daf6f0f

Browse files
authored
Merge pull request #3 from altynbek07/fix-deploy
fix: delete paths during deploy
2 parents 4117e9f + e2b42aa commit daf6f0f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

deploy.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
// Writable dirs by web server
1414
add('writable_dirs', ['web/media', 'runtime']);
1515

16+
// Delete paths
17+
add('clear_paths', ['frontend']);
18+
1619
set('allow_anonymous_stats', false);
1720

1821
set('git_tty', false); // [Optional] Allocate tty for git on first deployment
@@ -64,3 +67,6 @@
6467

6568
// [Optional] if deploy fails automatically unlock.
6669
after('deploy:failed', 'deploy:unlock');
70+
71+
// Run clear_paths task
72+
after('deploy:unlock', 'deploy:clear_paths');

0 commit comments

Comments
 (0)