mage2click / m2c

Mage2click toolset to create and manage the Magento Docker development environment with mutagen.io file-sync for macOS and native filesystem mounts on Linux.
https://mage2.click
MIT License
69 stars 23 forks source link

Bug when importing an existing db during init #15

Closed freeyland closed 4 years ago

freeyland commented 4 years ago

On line 1329 in functions/m2C you are missing: cd "$e2c_project_dir"

There is an issue when importing an existing db, the folder is in wrong location

shkoliar commented 4 years ago

What issue exactly? Toolset asks for a full path to plain SQL or gzipped database dump file.

freeyland commented 4 years ago

Instead of skipping bin/magento install it is doing the install again instead of importing the db. In m2c_local_project_up (called from m2c_local up) you are doing cd "$m2c_project_dir/.m2c/docker/" but not returning back to your $m2c_project_dir . As such the check on line 1336 (if [[ -f "$m2c_magento_db_import" ]]) is not working as it does not find the sql file.

shkoliar commented 4 years ago

File-path is full? It must be a full path, not relative to project.

freeyland commented 4 years ago

I've tried full path but it did not work. I will check again.

freeyland commented 4 years ago

Ok, looks like an other problem. When hitting the back button on my mac for correcting the url, it does not work when I type /Users/frederick/Sites/roularta_abocopy/ci/config.sql. WHen I do not make any mistake it is working. Very strange. Thanx for the help

shkoliar commented 4 years ago

I'll review that part later. Maybe problem because of some invisible symbols.