Skip to content

Commit

Permalink
add runtime to shared folders closes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Jul 22, 2019
1 parent 8bea8e9 commit 6de55a3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/).
In order to read more about upgrading and BC breaks have a look at the [UPGRADE Document](UPGRADE.md).

## 1.0.7 (22. July 2019)

+ Add runtime to shared folders, flush application cache on deploy instead.

## 1.0.6.1 (20. May 2019)

+ Try to improve the composer global require command, certain options could be ignored.
Expand Down
18 changes: 15 additions & 3 deletions luya.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,21 @@
run('cd {{release_path}} && ./vendor/bin/luya exporter/export');
});


/**
* Task: flush cache
*/
task('luya:cacheflush', function() {
run('cd {{release_path}} && ./vendor/bin/luya cache/flush-all');
})->desc('Flush application cache.');

/**
* Set global env shared dirs.
*/
set('shared_dirs', ['public_html/storage']);
set('shared_dirs', [
'public_html/storage',
'runtime',
]);

/**
* Task: luya
Expand All @@ -128,8 +139,9 @@
'deploy:luya',
'deploy:symlink',
'deploy:shared',
'luya:cacheflush',
'cleanup'
))->desc('LUYA project deployment');
))->desc('LUYA app deployment.');

/**
* Task: cleanup:deployefile
Expand All @@ -151,7 +163,7 @@
// the lock and json file can contain github tokens when working with private composer repos.
run('rm -f {{release_path}}/composer.lock');
run('rm -f {{release_path}}/composer.json');
})->desc('Remove sensitive data');
})->desc('Remove sensitive data.');

/**
* Set deployfile cleanup
Expand Down

0 comments on commit 6de55a3

Please sign in to comment.