Flow_Context Production Not Working

Hi,

I tried changing the flow context to production but it is not working,Showing always development

Find the below-attached file.

Running CMD:- FLOW_CONTEXT=Production ./flow resource:publish

Well, you need to set the context for all CLI calls, so either prefix it always:

FLOW_CONTEXT=Production ./flow

or export the env var:

export FLOW_CONTEXT=Production
./flow

Both should give you

$ FLOW_CONTEXT=Production ./flow
Neos 4.2.8 ("Production" context)
usage: ./flow <command identifier>

See "./flow help" for a list of all available commands.
1 Like