How to deploy and install new addons on staging environmentsCreated 6 years ago by hugogilmar
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:
#!/usr/bin/env bash sed -i 's/INSTALLED=true/INSTALLED=false/g' .env php artisan migrate --force --streams php artisan migrate --force php artisan migrate --force --all-addons php artisan streams:compile php artisan streams:publish --force sed -i 's/INSTALLED=false/INSTALLED=true/g' .env exit 0;
What's the right way to deploy new addons to a staging server?
Thanks for your help.