Closed duythien closed 6 years ago
If you want to create var/logs, var subfolder needs to exist inside shared folder (in your case that would be /srv/www/shared/var/logs), as it will not create the full path.
We are aware of this limitation, sorry about it, you can create a hook to ensure the var folder exists inside shared (If you look at our tests, we have a very similar example to this at https://github.com/ansistrano/deploy/blob/master/test/rsync.yml#L16:L30). Once this is done, you can probably remove the 0777 step as well once you set the proper permissions
@ricardclau Thanks I fix it now :)
Hello Ansistano is great but recently I try to create share directory to check log, then I get an error below
Here my config deploy file
And file after-symlink-shared.yml,
Anyway I have refer the article https://knpuniversity.com/screencast/ansistrano/shared-optimizations