-
Notifications
You must be signed in to change notification settings - Fork 23
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
Use m2c toolset for existing project #37
Comments
Hey @webphpprojects, Prepare your existing project files and database dump SQL file. Run Configure your dev environment by answering a questionnaire and after that, the m2c tool will detect your existing Magento project and ask you to import the existing database, in that step you will need to provide a path to database dump SQL file. After that toolset will create required Docker containers and import database. |
Maybe it's my fault, but it doesn't work as You desrcibed. I will describe step by step what I did:
In next step m2c downloads magento to the folder |
It should be like this
Make sure that your existing project has files pub/index.php, composer.json, and app/etc/env.php. m2c uses these files to detect Magento version and admin path. |
You're right - my project doesn't have pub/index.php and env.php :) (as I know it will be created during di:compile) Now I have other issue:
How can I fix it? Edit: |
Run
Try |
Ok, It helped me :) |
Make sure that Open Also, check nginx.conf file in project root - it should have |
I have only nginxi.conf.sample and in log I see this line - for nginx container: Should I rebuild my project? Edit: |
Nice! Also, it was possible to configure nginx.conf with command:
Push it to the container and restart:
|
Could you give me an instruction step by step how to use this tool with existing project? I'm trying and trying and even if I copy .env file to the new project, than create src and there git clone of the existing project - after
m2c init
a new magento project is added.Edit:
I have just checked repo docker-magento-mutagen and there is this flag:
--magento-project=<path>
Can I use similar flag for m2c?
Thank you in advance
The text was updated successfully, but these errors were encountered: