Skip to content

Laravel environment after deploy alway dev but in overlays/.env another #7

@yuriizee

Description

@yuriizee

When a command is executed
dploy deploy main
and you have your own overlays/.env file that specifies any APP_ENV value, then it is ignored.
Deploy will always be dev in the cached laravel configuration file, even though the same .env file will have a different value.

STR:

  1. Setup Laravel project
  2. Configure dploy and overlays/.env for project with APP_ENV=production value, with before_commands cd {release_directory} && php8.3 artisan optimize:clear
  3. run dploy deploy main

Temp solution: run dploy deploy main --env=production

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions