Skip to content

Stats shows incorrect environment #112

@srijak

Description

@srijak

Hello,

Thanks for creating this project: it's been easy to setup and use.

I came across the following issue and would love some clarification.

In the Stats page, the environment label is sourced from Sinatra::Application.environment[0], which depends on a APP_ENV enviroment variable[1].

It looks like setting this up doesn't affect anything other than that specific label because the DB connection used to get DelayedJob(s) is whatever rails is setup to use.

Is that correct? If so, would it make more sense to use the rails env value?

[0]https://github.com/ejschmitt/delayed_job_web/blob/master/lib/delayed_job_web/application/views/stats.erb#L8
[1]http://sinatrarb.com/configuration.html

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