-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upload function error: scp: ambiguous target #1010
Comments
Need more info. |
Thanks @Elfet for your response, I get this error where when I try to upload files containing spaces in the name. Example: file name.txt cause error(scp: ambiguous target) I looked for information about this and talk about to put a backslash in front of every space. I tried this in my task but the error continues: task('deploy:update_assets', function () { foreach ($files as $file) Any suggestions? |
Please show content of deploy.php |
This is my deploy.php: `<?php // Configuration set('ssh_type', 'native'); set('repository', 'git@repo'); add('shared_files', ['application/config/database.php', 'application/config/config.php', 'index.php', '.htaccess']); set('assets_dirs', ['assets/dist', 'assets/images', 'assets/js', 'assets/templates', 'assets/third_party']); // Servers server('production', '..*.') // Tasks desc('Restart PHP-FPM service'); desc('Update assets'); foreach ($files as $file) after('deploy:symlink', 'php-fpm:restart'); // [Optional] if deploy fails automatically unlock. |
Why you need this? Show output of dep run with -vvv. |
@Elfet The root cause is space symbols in file path as @fernaog could you please try my solution? |
@pluseg i see |
Fixed in master. |
Thank you very much. Sorry for the delay in answering, I was a long time without internet connection. |
Description
Hello,
I am getting this error whit upload function:
scp: ambiguous target
How can I solve this?
The text was updated successfully, but these errors were encountered: