How to deploy and install new addons on staging environments

hugogilmar
- 1 month ago

Hi guys,

I'm working with addons as features for my project. I've been using Deployer for publishing on a staging server. Everytime I deploy a new feature (addon), I'm dealing with errors like: Class 'Anomaly\Streams\Platform\Model\Users\UsersRolesEntryModel' not found.

For earlier deploys I've created a bash script with the following commands:

hugogilmar
- 1 month ago

Hi,

Here an update. We discover an issue with the forlder storage/streams. From a new git checkout, any artisan command failed. We just add storage/streams as a shared folder on Deployer script (linked directory to a shared path) and upload our local storage/streams content.

After this, the project worked again.

How is supposed to handle this, or how can we recreate this folder content without issues. By default it contains an .gitkeep file ignoring all it content.

ryanthompson
- 4 weeks ago

The only thing you need from storage is the models - which will regen with the streams:compile command but in your case you must first mark as uninstalled. If this does not work - what is the specific error from logs you are experiencing?