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

config.yaml **not** generated after first use #169

Open
kkrieger85 opened this issue Jun 24, 2020 · 7 comments
Open

config.yaml **not** generated after first use #169

kkrieger85 opened this issue Jun 24, 2020 · 7 comments

Comments

@kkrieger85
Copy link
Contributor

#Ref readme.md

The configuration of the script is done in ~/.config/sw-cli-tools/config.yaml. If the file does not exist on your system, it is created after the first usage of the script.

I tried to generate test data with sw:generate. This command doesn't work without config.yaml setting for Datagenerator/locale

After that I created a plugin with sw:plugin:create and no config.yaml was generated

@mitelg
Copy link
Contributor

mitelg commented Jun 24, 2020

which OS do you use? where do you execute the cli-tools?

@kkrieger85
Copy link
Contributor Author

ddev describe          
NAME       TYPE  LOCATION            URL                          STATUS        
shopware5  php   ~/htdocs/shopware5  https://shopware5.ddev.site  running

Project Information
-------------------
PHP version:   	7.2
MariaDB version	   
MySQL version  	   

URLs
----
http://shopware5.ddev.site 
http://127.0.0.1:32795     
https://shopware5.ddev.site
https://127.0.0.1:32794    

MySQL/MariaDB Credentials
-------------------------
Username: "db", Password: "db", Default database: "db"

or use root credentials when needed: Username: "root", Password: "root"

Database hostname and port INSIDE container: db:3306
To connect to db server inside container or in project settings files: 
mysql --host=db --user=db --password=db --database=db
Database hostname and port from HOST: 127.0.0.1:32782
To connect to mysql from your host machine, 
mysql --host=127.0.0.1 --port=32782 --user=db --password=db --database=db

I installed (and self-updated) sw.phar to ~/bin/sw (chmod +x ) via wget http://shopwarelabs.github.io/sw-cli-tools/sw.phar && mv sw.phar ~/bin/sw

@mitelg
Copy link
Contributor

mitelg commented Jun 24, 2020

if you create the file by yourself, will it be read by the tool?

@kkrieger85
Copy link
Contributor Author

Yes. I copy & paste config.yaml.dist to ~/.config/sw-cli-tools/config.yaml changed Dategenerator settings and this worked for me

@mitelg
Copy link
Contributor

mitelg commented Jun 25, 2020

ok, nice to here that 👍

I will leave this issue open, so that one could have a look, why it is not auto generated in the first place

@kkrieger85
Copy link
Contributor Author

From my point of view, there's no code, which should save a config file - maybe i overlooked this part

@mitelg
Copy link
Contributor

mitelg commented Jun 25, 2020

😄 I'm not sure either. maybe we just have to adjust the readme file 😉

but as this is not a official supported repository, I don't know, when I have time to do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants