Skip to content
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

Bug when importing an existing db during init #15

Closed
freeyland opened this issue Oct 18, 2019 · 6 comments · Fixed by #16
Closed

Bug when importing an existing db during init #15

freeyland opened this issue Oct 18, 2019 · 6 comments · Fixed by #16
Labels
bug Something isn't working

Comments

@freeyland
Copy link
Contributor

freeyland commented Oct 18, 2019

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

@freeyland freeyland changed the title Bug Bug when importing an existing db during init Oct 18, 2019
@shkoliar
Copy link
Member

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

@freeyland
Copy link
Contributor Author

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
Copy link
Member

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

@freeyland
Copy link
Contributor Author

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

@freeyland
Copy link
Contributor Author

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
Copy link
Member

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

@shkoliar shkoliar added the bug Something isn't working label Oct 21, 2019
shkoliar added a commit that referenced this issue Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants