add an environment variable when ace is used to run the app
Closed this issue · 2 comments
jd1378 commented
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
thetutlage commented
You can use the application.environment
property for the same. https://docs.adonisjs.com/guides/application
jd1378 commented
thanks
I expected to see this information inside ace documentation, not there