Closed angelcnsk closed 5 years ago
When you download Spock, make sure you drag the Spock
folder into your site/addons
folder. The service provider should be at site/addons/Spock/SpockServiceProvider.php
.
Also ensure you are running your site is running Statamic 2.10.0+ for the latest version of Spock.
Thanks, it seems that the problem is that I had not updated to statamic 2.10 I managed not to mark an error, but I can not get it to execute the git commands. I copied and pasted the commands as indicated in the documentation but nothing happens when updating content. I appreciate the help.
Check your environments setting in spock.yaml, or in the addon settings in the control panel. It's likely not setup for your local environment. You can add your local environment temporarily to test it out though (found in your .env file).
I am very grateful for your help, I had not understood that the serviceprovider is placed when custom commands are desired, I left only the spock.yaml file and it is already working correctly.
I'm trying to implement this add-on but I can not make it work, I just paste the addon folder and I get the following error:
FatalThrowableError in Application.php line 575: Class 'Statamic \ Addons \ addons \ Spock \ SpockServiceProvider' not found
I have already added the lines indicated in the AddonServiceProvider.php file and added the spock.yaml file but it still does not work. I hope you can help me install and run this add-on. Thank you for the attention.