-
Notifications
You must be signed in to change notification settings - Fork 3
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
Provide an initialization command for a simple 1:1 production copy #124
Comments
Originally taken from #121 |
Alternatively, we could also implement this functionality inside "drowl-init-from-existing" |
Comment by @JPustkuchen in context of attaching VSCode Settings:
|
@JPustkuchen I think, I don't quite understand your suggestion. In my current understanding, I think that would be too much. If we add further dev modules, extensions, etc. this will get way to big, I don't see myself using a command like: |
But I generally don't like the idea of this repository having a prod command. I think a prod command would only make sense if we are keeping the local and remote copy in sync, without removing our dev tools locally. |
@joshsedl I agree it's not that easy to understand, I think we'll have to go back a bit. Problems to be solved:
In practice all these points would be very helpful, because it can be used a lot more flexible and transparent than only with the startup-command (which also allows to enable / disable these by flags) As an example, if we put the functionality into features that can be enabled or disabled like this (naming is just for example):
These command would then explain themselves and ask for confirmation, before execution. For example list which modules they will install and what they will change and if it's revertable. You could setup the production copy where you can be sure nothing is modified by our tool automatically and so it can be re-uploaded to production. With the features you now don't have to decide at the very beginning, if this is a dev or a prod copy. It's just for convenience, if you'd like to decide front-up. You can simply run Now your prod copy couldn't be used for production upload anymore without manual cleanup...
This is just the expectation and I guess some receipts won't be revertable. But we can simply document this when running the As a side-effect the I hope you got my point, otherwise let's just talk. The requirements from this come from daily practice so I'm sure this would make the devcontainer even more usable and flexible in real-world projects for us. |
Still one may need an environment that reflects the prod environment 1:1, but while that sounds easy, there are very difficult points which can't be automated that simple in all aspects.
Things like:
Online settings.php (with real DB credentials!) which can't be used local and may never be changed. It may contain important secrets for the functionality. But if we add a local.settings.php file, this would mean, we're also changing the project!
Different Drupal CMS configurations, folder structure, vhost, ... can't be simply assumed like in our environment. This may include folders which are outside of the regular structures (private files)
Proxying files and such things can't be done, as we'd need a custom module and that would also change the installation!
...
so, it's NOT trivial!
We first need a clear plan and concept here, before changing the implementation in large parts!
Things should be clear and easy from the end-user perspective.
And we have to decide, what's worth it, based on regular usage! Things evolve fast... and time is the currency.
The text was updated successfully, but these errors were encountered: