Closed MircoBabin closed 2 years ago
After replacing base='www/'
with include[]='www/*'
directory creation goes well.
But this has the disadvantage that root items (files in the root directory before the www directory) are also transfered. I had to exlude these manually one by one. (Only the www directory is transfered, other directories not, so that's good !).
[*]
include[] = 'www/*'
exclude[] = '*.htaccess.development'
exclude[] = 'index.development.html'
exclude[] = '.env.example'
exclude[] = 'deploy.bat'
exclude[] = 'phploy.ini'
exclude[] = 'phploy.phar'
In my case the directory structure is:
/repo-root/index.development.html
/repo-root/.env.example
/repo-root/deploy.bat
/repo-root/phploy.ini
/repo-root/phploy.phar
/repo-root/customlogs/...
/repo-root/www/...
Using include[]='www/'
is very slow.
Using include[]='www/*'
will produce an error. But the error is ignorable.
^ 58 of 59 www/.../page.php
! File not found - please check path: /repo-root/www/*
When using
base = 'www/'
and the server does not contain any directories, wrong directories will be created.On the server the directory path/www/... wil be created. But the files are put in path/.../ without the base directory.
Looking into phploy.php I noticed that directory creation does not take base into account. First remote directories are created (with base in the filename). Then base is stripped and the file is transfered.