Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task('logrotate:link', function () {
- run('sudo ln -fs {{ current_path }}/etc/logrotate.conf /etc/logrotate.d/AppName');
- });
- // Create a symlink to rotate laravel logs.
- on(host('stage'), function ($host) {
- after('deploy:symlink', 'logrotate:link');
- });
Add Comment
Please, Sign In to add comment