rainlab / deploy-plugin

A simple way to deploy your application to a remote location.
Other
16 stars 15 forks source link

Plugin deployment failed #50

Closed cyril-design closed 1 year ago

cyril-design commented 1 year ago

Hi. Since a while i cannot activate a new plugin on remote server. The files are successfully uploaded to the remote server, migrate process is ok, clearing cache... etc. But there is not activation in remote october admin (no entry in system_plugin_versions table).

Any ideas ?

daftspunk commented 1 year ago

Hi @cyril-design

One thing to check is dependencies. If a plugin requires another ($require property in the Plugin.php file), it may not load or migrate if that plugin is missing.

cyril-design commented 1 year ago

I checked: the plugins do not require any particular dependencies. How are the plugins loaded in OctoberCMS ?

daftspunk commented 1 year ago

The class System\Classes\PluginManager is responsible for loading the plugins and it stores a manifest file in storage/cms/manifest.php when debug mode is off.

Try this command: php artisan plugin:list to see if it appears in the list

Hopefully some of this helps with debugging.

cyril-design commented 1 year ago

Thanks for your reply Daft. Plugin doesn't appear in the manifest list. I add my plugin in the manifest :

'initbiz\\seostorm' => 'initbiz/seostorm',

And redeploy it via Deploy and it works !

daftspunk commented 1 year ago

Great! Glad you got it solved.

Clearing cache should solve this because it deletes the manifest file, from there it is rebuilt to include all plugins found in the file system.