adonisjs/ace

add an environment variable when ace is used to run the app

Closed this issue · 2 comments

Why this feature is required (specific use-cases will be appreciated)?

I have started using adonis-bull and when running any command while the server is running I get some binding error about adonis-bull trying to serve a ui on the same port

Solution to that is to know when an ace command is running and skip serving anything related to adonis-bull. to do that I need an environment variable.

Have you tried any other work arounds?

I haven't find any information about such environment variable

Are you willing to work on it with little guidance?

sure, But I think a maintainer doing this will be way faster and efficient

You can use the application.environment property for the same. https://docs.adonisjs.com/guides/application

thanks
I expected to see this information inside ace documentation, not there