-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
docs: added ddev snippets #2575
Conversation
DDEV is the reason why I can now work in Windows, without having to install or clone VMs as I used to do before. I have everything on a stick. I will continue to keep the VMs for testing before production. As I said in another post, quoting from an IT article, Docker was called one of the wonderful things still happening in the world of programming. The fact that DDEV facilitates the testing of several frameworks is an enormous relief of the work to set up a test environment. In addition, it has a huge number of features, for example I like that I can change the PHP version just by editing the file without having to deal with the installation of those packages. I can choose between Nginx or Apache and many others. testing becomes much faster and I can evaluate different configurations. I've only been working with it for 2 weeks and I'm not even sorry that I spent time learning it part from the surface. |
You can mention a few lines about using Magento 1 Sample Data.
I did not mention the link to Vinai's repository like in the DDEV source because it is only 80 MB, while the original from Nexcess is 415 MB. |
I'd use @Vinai repo. It's complete and just uses better compressed images. |
You can change the link to Vinai's repository (as DDEV also recommends) based on your arguments.: Please check my inline comments. You can add this tip:
|
This link is outdated ... opened PR at ddev to use latest versions. |
Thanks to @kkrieger85 for issues/PRs at DDEV 👍 |
@sreichel - I created a few comments in the code days ago. Please let me know your opinion. |
@addison74 Have i missed something? I've added dev-mode, but did not add sample-data, b/c its mentioned at ddev-docs. edit: you can also edit/update this PR :) |
I will revise it these days and add what is missing, but not before letting you know. |
@@ -0,0 +1,69 @@ | |||
# OpenMage DDEV environment | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would put this link on the next line
https://ddev.readthedocs.io/en/stable/
## Use xDebug with PhpStorm | ||
|
||
If xdebug works not correctly with phpstorm. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If xDebug doesn't work properly in PhpStorm.
dev/ddev/README.md
Outdated
DDEV changes port numbers on every restart. | ||
|
||
If you use PhpStorms DB feature, it is helpful to use fixed port numbers. E.g. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you access the database in PhpStorm set up a fixed port number.
(without E.g.)
I would also recommend this addon https://github.com/drud/ddev-browsersync. There is an open PR for dealing with HTTPS connections. A feature which was missing and which is extremely important if mkcert is used (DDEV detects automatically the SSL files). |
In the case of the dev script created by @colinmollenhour located in /dev directory, he provided that the Backend needs a user. If a database is imported through the command Please note DDEV is not creating a user for Backend for a git clone OM. The issue is that by running the
INSERT INTO `admin_user` (`user_id`, `firstname`, `lastname`, `email`, `username`, `password`, `created`, `modified`, `logdate`, `lognum`, `reload_acl_flag`, `is_active`, `extra`, `rp_token`, `rp_token_created_at`) VALUES
(1, 'Open', 'Mage', 'contact@ddev.site', 'admin', '17ef9b5a13acc91cc8f7bfe49a90e01f1e04ad6c885616a07d2ad7229617992c:MKZ25yJs32F11JWKvbVbDqebeB35NV4n', '2022-10-04 16:26:46', '2022-10-04 17:16:57', '2022-10-04 17:16:57', 0, 0, 1, 'N;', NULL, NULL);
I hope that those who want to try DDEV will not encounter any issue that will cause them to abandon evaluating this quick possibility to create a test environment based on Docker. After testing last night in a VM with Ubuntu 22.04 (Docker + DDEV + Phpstorm) I was left with a pleasant impression regarding the consumption of resources and especially the speed of the work environment. |
I reported the above issue here ddev/ddev#4259 but it seems that we will have to find a solution to it. |
* Fixed "should return string but returns false" * Fixed "should return XYZ but returns false" * Fixed "should return array but returns null" * Fixed "should return string but returns null" * Fixed "should return int but returns null" * Fixed "should return bool but returns" * Fixed docs (see comments) * Fixed "should return array" * Update app/code/core/Mage/Adminhtml/Block/Widget/Grid/Massaction/Abstract.php Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com> * Update app/code/core/Mage/Catalog/Model/Product/Attribute/Tierprice/Api.php Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com> * Update app/code/core/Mage/Tag/Model/Resource/Tag.php Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com> * Update app/code/core/Mage/Customer/Block/Form/Register.php Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com> * Added module names to helper(#2617) * Get catalog search result collection from engine (#2634) * Add PHP dependencies security check workflow (#2639) * [security-workflow] Fixed cron syntax (#2640) * Added OpenMage Contributors Copyright (#2295) * Added ddev snippets to docs (#2575) * Improve dev/openmage/install.sh script for newer versions of Docker - no longer requires separate compose. * Only run workflows when relevant files change (#2641) * Add back notification popup severity icons URL (#2633) * Reduce reprocessed jpeg file size by defaulting quality to 85% (#2629) * Fixed issue #475. * Removed <frontend_type>text</frontend_type> as it is the default. * Fixed bug on users not able to modify image quality in backend if deprecated config exists. * Fixed bug on incorrect check if image quality was not set in backend. * Improved note in system.xml. * Prevented editing of a non-editable order (#2632) * Fix dev/openmage/install.sh script setting permissions on var directory. * Allowed automatic full invoice from API (#2393) * Add check if array key isset before using it (#2649) * Fixed phpstan-baseline.neon * Fixed phpstan-baseline.neon (updated dev tools) * Revert "Fixed phpstan-baseline.neon" This reverts commit 3c82e76. * Fixed getRegion() Co-authored-by: Ng Kiat Siong <kiatsiong.ng@gmail.com> Co-authored-by: Mohamed ELIDRISSI <67818913+elidrissidev@users.noreply.github.com> Co-authored-by: Justin Beaty <51970393+justinbeaty@users.noreply.github.com> Co-authored-by: Colin Mollenhour <colin@mollenhour.com> Co-authored-by: luigifab <31816829+luigifab@users.noreply.github.com> Co-authored-by: Przemysław Piotrowski <przemyslaw.p@deligo.pl>
I will complete this README with several solutions in different situations. For example, how to import a database and files, how to take a snapshot, how to use Composer and many others. Also, a link must be added in the README file of OpenMage located in the root to this file. DDEV must be promoted because it represents a much better and more flexible solution in Windows than XAMPP/WAMPP, being preferable to a VM provided that you are familiar with Docker at an average level. |
Description (*)
I'v seen @addison74 plays around with DDEV ... just want to share this.
Contribution checklist (*)