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
ddev import-files removes settings.php and settings.ddev.php #5474
Comments
We always want to hear about problems, so thanks for filing this issue. I just attempted to recreate this with a drupal10 site and wasn't able to. Is it possible that it had to do with the content of your files.tgz file? Please take a look at that. It could also be that your project wasn't of type drupal*, or that you had You didn't provide the requested output of But before that, please make sure you can recreate this behavior. It would be nice if you'd do a trivial plain-vanilla drupal10 project and demonstrate it with that. You can create one with the instructions at https://ddev.readthedocs.io/en/latest/users/quickstart/#drupal If you'd like a sample files.tgz to work with, there's a d10 version of a set of files at https://github.com/ddev/d10simple-artifacts |
Sorry I should have pasted the output. Please see here The files.tgz just contains user uploaded images (it's pretty big though...like 20GB). I have reproduced the issue consistently. This is for a D9 site. I'll try to reproduce the problem on a D10 and get back to you. |
upload_dirs was left commented out in config.yaml...so just using the defaults for mostly everything. |
I just repeated my test on a plain-vanilla drupal9 site and certainly didn't see this behavior. Please make sure you can provide a recreatable scenario. Maybe you can push up a repo to GitHub that demonstrates it? Maybe you can PM me the files.tgz (but look inside first). (I should note that DDEV manages the settings.ddev.php, and it will be recreated on every |
I've narrowed it down a bit. When I do When I go I'll send you a PM to see how best I can demonstrate it to you without sending across confidential info. Thanks for taking a look into it btw. |
Yes, if you use |
Please don't use the |
I would love to have you explain why you were using |
Well at first, when I just tried Nowhere in the docs mentioned that adding the --target flag blows away everything in that directory. (probably worth adding a little note in the docs) I got around the issue finally by created a custom command like so:
Then I can just run |
I see, your tarball was based at the wrong level (it included the You can still just create the tarball correctly. And note that |
Please take a look at and see if it would help you. Note that
|
Thanks! I added a couple comments to the PR. It's up to you to include it. |
Is there an existing issue for this?
Output of
ddev debug test
No response
Expected Behavior
settings.php and settings.ddev.php should remain as is.
Actual Behavior
settings.php settings.ddev.php are deleted
Steps To Reproduce
ddev start
ddev import-files --source=.tarballs/files.tgz
Anything else?
No response
The text was updated successfully, but these errors were encountered: