shopware/development

Installation on MacOsx via Valet+

JonathanDeBelg opened this issue · 5 comments

Description
I am trying to install shopware developer locally via the valet+. When running ./psh.phar install i get the following error;

(1/3) Starting
mysql -u 'app' -p'app' -h 'mysql' --port='3306' -e "DROP DATABASE IF EXISTS `shopware`"
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2005 (HY000): Unknown MySQL server host 'mysql' (0)

while being in the execution of the init-database. How can i fix this?

Possible Solution
I have added a user 'app' with pw 'app' and when listing the host and users in mysql i get the following;
+-----------+------------------+
| host | user |
+-----------+------------------+
| localhost | mysql.infoschema |
| localhost | mysql.session |
| localhost | mysql.sys |
| localhost | newuser |
| localhost | root |
| mysql | app |
+-----------+------------------+
I don't get how this won't work, as u can see the host of user app is indeed mysql.

shyim commented

You need to run ./bin/setup and configure your credentials

shyim commented

I will close this, if its not working please write I will reopen it :)

Hi, thanks for your reply. I was able to install everything. Now i am trying to acces the site, but i get the message that the site can't be reached. as you can see the domain is linked. Any idea how this can be fixed?
+------------------+-----+-------------------------+------------------------------------------+
| Site | SSL | URL | Path |
+------------------+-----+-------------------------+------------------------------------------+
| realfutcard.test | | http://realfutcard.test | /Users/{user}/Sites/realfutcard/public |
+------------------+-----+-------------------------+------------------------------------------+
To test the installation i run ping realfutcard.test and this gives me the following;

64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.029 ms

Running sudo nginx -t;

nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful

shyim commented

This looks okay for me whats the issue. Does the admin work /admin? When yes, check the domains of the sales channel

This looks okay for me whats the issue. Does the admin work /admin? When yes, check the domains of the sales channel

Doesn't work. It gives the error; This site can't be reached.
Should i maybe run something after ./psh.phar install?
When running valet fix i do get an error saying

Unable to determine linked PHP