wpbones / WPBones

WordPress framework for Laravel developers
https://wpbones.com
GNU Lesser General Public License v3.0
138 stars 27 forks source link

Error with cli Bones #5

Closed dmoraCdev closed 6 years ago

dmoraCdev commented 7 years ago

Thank you very much for your work. I'm testing your framework, and I have this problem when I try to run the "php bones" commands. I think my problem may be the PHP version, I'm using PHP 7. You could help me please.

image

gfazioli commented 7 years ago

@dmoraCdev Hi there, thank you for your support. I think that the issue is due to your env. You should use the WordPress container, I mean, you should be in the shell of WordPress because php bones is using WordPress connect.

The php bones command, should be run from your WordPress environment (into the Vagrant or Valet) because it will load WordPress. Also, make sure to install git and composer in your WordPress environment. Instead, in your host machine (Mac or PC) you can install npm. It is used only by gulp.

Could you give me more detail about your environment?

For more info have a look here https://github.com/wpbones/WPBones/wiki/requirements