This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Mohsin
Mohsin

Update: I solved the issue using this solution.

While using homestead the ports are mapped as:

3306 -> 33060
80 -> 8080

I do development via my host so I have to use http://myoctoberapp:8080 and this is fine with me. But it’s annoying that whenever I do any artisan command such as php artisan plugin:refresh Acme.Plugin it gives me this error:

[PDOException]
  SQLSTATE[HY000] [2002] Connection refused

I did the same command after I did a homestead ssh and then a cd myoctoberapp and executed it without any problem. So my guess is that inside the homestead VM artisan looks at the default port i.e. 3306 whereas outside; in the host; it sees 33060 and so it’s unable to execute. Anyway to fix this?

Last updated

FelixINX
FelixINX

Homestead is part of Laravel - not October CMS. Have you tried another artisan commands, that are Laravel native, to a Laravel project?

http://laravel.com/docs/5.1/homestead Read the docs, to be sure.

Cpt.Meatball
Cpt.Meatball

Might just be me, but isn't this just the correct way of using Homestead (homestead ssh)? I thought that homestead runs a CLI vagrant/virtual box, so your database lives inside this virtual box. You then map your apps/websites in the yaml file that homestead uses for provisioning. I then run homestead by running the vagrant up command within the directory in which my "server" files reside.

But again, it might just be me doing stuff different than intended.

Last updated

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.