- Deployments run through GitHub Actions + Deployer 8 (
.github/workflows/deploy.yml,deploy.php,deploy/custom.php). - Production: pushing or merging to
maincalculates the next version, deploys to production (3.142.169.134), and creates a GitHub release. Add[skip deploy]or[no deploy]to the commit message to push without deploying. - Development: pushes to
developmentdon't deploy. Run the workflow manually (Actions → Build and Deploy → Run workflow →development) to deploy to the development server (3.138.217.206). - Assets are built in CI and downloaded as an artifact; the server doesn't build them.
- Releases live under
/data/web/digitizationacademy/releases/<n>, withcurrentpointing at the active one. Both servers serve it with PHP 8.5 (php8.5-fpm). - Queues run under Horizon (Supervisor program
da:da-horizon_00). After a deploy, checkphp artisan horizon:statusand thathorizon:workprocesses stay up, not just that Supervisor shows RUNNING.
- The server's
.envis generated from AWS SSM Parameter Store (/digitizationacademy/<environment>) on every deploy by theenv:ssmtask from the shared deployer-recipes package (set('ssm_app', 'digitizationacademy')indeploy.php). It keeps the last 5.env.backup.*files inshared/. - Manage the parameters from your machine:
vendor/bin/push-env-params digitizationacademy <development|production>pushes.env.aws.<environment>to SSM.vendor/bin/remove-env-params digitizationacademy <development|production>deletes every parameter under that path, after you type the environment name to confirm.
- Keep
.env.aws.*files out of git (covered by.gitignore).
DigitizationAcademy is open-sourced software licensed under GNU General Public License v3.0.
Translation by https://translation.io