Skip to content

Add sensible fallbacks for NIGHTWATCH_DEPLOY#323

Draft
jradtilbrook wants to merge 2 commits into1.xfrom
default_deployment_config
Draft

Add sensible fallbacks for NIGHTWATCH_DEPLOY#323
jradtilbrook wants to merge 2 commits into1.xfrom
default_deployment_config

Conversation

@jradtilbrook
Copy link
Member

@jradtilbrook jradtilbrook commented Jan 22, 2026

This configures sensible defaults for NIGHTWATCH_DEPLOY config. Falling back to Laravel Cloud deploy commit and then to Laravel Forge deploy commit if not available.

This supersedes #293 which has a few problems that probably make it not viable:

  1. Git details are not available in Laravel cloud and likely Vapor as well, meaning running the shell exec will return empty string
  2. Without config caching, it will run that on every request/entrypoint of users applications which is likely not ideal.

The downside of this PR approach is that this user facing config file looks a bit "off" with these fallbacks. We could move this logic elsewhere to try improve that if desired.

@jradtilbrook jradtilbrook force-pushed the default_deployment_config branch from 2a9a4ee to bf8e368 Compare January 22, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments