Open bwood opened 8 years ago
See #2
If there were a way to put the site into SFTP mode at the beginning of backup_settings.php and return it to GIT mode at the end of the script (and use a similar approach in restore_settings.php), this might work.
This is technically possible now, but is a bit of a kludge and not something I would recommend going after at scale in production.
However, this is definitely the spirit of where we want to take things, and we have some ideas on how to get here. In the mean-time I think Greg (see above) is looking into your use case.
I really appreciate you guys reading through this!
Since the site is in 'git' mode file system permissions will prevent the copy:
Possible solutions:
2.a. git pull the site to local computer and copy settings.php outside of the working copy of the repo. 2.b. Apply updates. 2.c. git pull again and overwrite settings.php with the copy created in 2.a. 2.d. git commit. git push.
But I was really hoping for a seamless solution that would happen automatically on Apply Updates. There is a large number of existing sites that we need to accommodate.