Skip to content

Cannot run opti watch if project is using an azure database #14

@thorivarnj

Description

@thorivarnj

Issue

If you try to run the opti watch command while having the project configured to run an azure database the script will throw an error.
This is caused by the watch command running the command ensureDbIsRunning() on line 19 in the watch.mjs file.

Fix

I think the cleanest fix to this issue is to match a regexp to the connection string in the appsettings file, and if it matches for azure it does not run the ensureDbIsRunning() function.

Metadata

Metadata

Assignees

No one assigned

    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