Skip to content

Automate Swagger/OpenAPI doc generation in deployment script #1539

Description

@NishaSharma14

Problem

After deployment, OpenAPI docs are not automatically refreshed.
We currently have to run the following command manually to regenerate/publish Swagger docs:

docker compose -f "$COMPOSE_FILE" exec -T app sh -lc 'cd /var/www/html && L5_SWAGGER_USE_REFLECTION_ANALYSER=true php artisan l5-swagger:generate && cp storage/api-docs/api-docs.json public/api-docs.json'

Proposed change

Update the deployment script/pipeline to run the command above automatically after each deployment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions