After creating stub services with cro stub http test test, I have defined TEST_PORT environment variable in .cro.yml:
---
id: test
cro: 1
name: "test"
endpoints:
-
id: http
name: HTTP
protocol: http
host-env: TEST_HOST
port-env: TEST_PORT
links: []
entrypoint: service.p6
env:
- name: TEST_PORT
value: "3001"
...
Nevertheless, Cro still uses the default 20000 port. Alex Schroeder exports the environment variables to start Cro in a different port. The command "export TEST_PORT="3001" && cro run" still uses the default port.
What would be the right form of defining the service port in Cro?