-
-
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
Added DDEV command to install OM (incl. sample data) #3248
Conversation
I will test this PR these days, being a fan of DDEV on Windows + Docker + WSL2. BTW, we have not yet determined what happens with the local.xml file which is automatically created by DDEV when we configure a new project and thus we cannot access to the Backend running the installation. Maybe we should also make an command to run a query for creating an admin account with a simple password. We had this conversion here #2648. |
@sreichel - I see that you addressed in the script the issue of creating the administrator account for Backend. |
@addison74 in case of an existing |
... drops your db w/o asking and install openmage w/ sample data
A few comments 1 - If the command 2 - DDEV provides support for SSL certificates. The arguments in the install script 3 - You can work a little on the phrases "OpenMage is already installed. Delete local.xml and drop the database? [y/N] :". We keep the same format like in "Install sample data? [y/N]", it is a question. "Install sample data? [y/N] :". You missed the colon. Otherwise the script has no other issues and it is extremely useful. I recommend everyone who tests OpenMage to use (DDEV + Docker + WSL2), especially in Windows, if you do not work directly in a Linux distribution. |
In all Before: In this way the input from the keyboard will be more visible. |
The name of the command should start with openmage- prefix, so that we can add other commands related to OpenMage,that are easy to remember. e.g, openmage-install = what you just created in this PR |
The functionality is exactly what it needs. I made only a few proposals to improve the relationship with the user. Thank you @sreichel for this PR that improves OpenMage's testing mode and helps by reducing the time it takes to install a new instance. |
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.
Only 4 modifications I request :)
@addison74 can you please test without sample data? |
PHP 7.4.33 - I was able to install both variants. There were no errors when I used the variant without installing the sample data. |
Strange. Does table-prefix work for you? |
When it works for you a default prefix should be added. ( Will add some options later ... like session storage ... |
@addison74 why did you delete my comment about n98-magerun? Most commands work ... just needs to get tested explicitly. |
My request was off-topic to this PR and I deleted it, there were two messages. In the meantime I opened a PR that solves that situation differently from n98-magerun, where it is a lot of work to be brought to compatibility with PHP8.1. I deleted your answer because the question no longer exists. |
Changes in phrases and where the /media and /skin directories are copied
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.
Please approve this PR. I have been using it for some time and there are no issues. I made some changes in the displayed phrases and corrected the directory where they are copied from the downloaded archive /media and /skin directories.
@addison74 what about your comment about table prefixes? |
The command deals with two situations:
I agree with Sven in the first case to cover the situation of the table prefix from the very beginning. I started from the idea that what is being worked on in DDEV can be put into production and that's why I didn't want a prefix. But it can be easily solved by exporting the database and executing a sed command to delete the prefix. I haven't analyzed it, but I think that a DDEV command can be created to do this automatically. |
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.
approving because asked, not tested
@fballiano you wrote you are not using ddev ... its just a shell script that should work w/o ddev too. |
Description (*)
Adds ddev-command
ddev install-openmage
to install OM w/ or w/o sample data.There a three optional flags ...
-d
use default values for admin-user, db, ... w/o getting asked for-s
install sample data ...-k
keep sample data package (to avoid to download it again and again)-q
drop current install and re-install with default valuesRun
ddev install-openmage -d -s
to install OM /w sample data.Questions or comments
Install works only WITH sample data!
Updates welcome.
Contribution checklist (*)