Skip to content

Error mounting multiple domains #1672

Open
@jahagirdar

Description

@jahagirdar

I have two apps build using dancer2 hosted on two different domains say foo.com and bar.com
I am loading them via a app.psgi file

builder {
    mount 'https://foo.com/'      => foo->to_app;
    mount 'https://bar.com/' => bar->to_app;
    };

Both these apps access databases foodb and bardb each

I am frequently seeing "Error 500" messages while these databases are accessed. On checking the log it is usually because foo is trying to access its tables from bardb or bar is trying to access its tables in foodb.

It looks like the configuration of one app is leaking into another. I am not sure how to debug this. Any hints?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions