Laravel initialization with rsync #2565
Answered
by
bilogic
bilogic
asked this question in
Help needed
-
Hi,
task('init', [
...
'rsync1', // rsync folders (excluding vendor), artisan config:clear, artisan key:generate
...
]);
task('deploy', [
...
'rsync2', // rsync folders (including vendor)
...
]); |
Beta Was this translation helpful? Give feedback.
Answered by
bilogic
Jun 7, 2021
Replies: 3 comments 6 replies
-
This is totally doable. Just write custom task. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Ok, I managed to figure out task('config_rsync1', function() {
add('rsync', [...]);
});
task('init', [
...
'config_rsync1',
'rsync', // rsync folders (excluding vendor), artisan config:clear, artisan key:generate
...
'config_rsync2',
'rsync',
]); |
Beta Was this translation helpful? Give feedback.
5 replies
-
Use multiple Also take note that e.g. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bilogic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use multiple
upload()
(which usesRsync.php
instead ofcontrib/rsync.php
)Also take note that
upload()
requires the use of--
for it's options unlikecontrib/rsync.php
e.g.
$config = ['options' => ['--copy-links']];