-
What is the "proper" way to serve up multiple specs? For example, I have two apps I want to run at the same time with different backends. Do I spin up counterfact twice, just pointing at a separate file and providing a separate port? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Looks like launching two separate instances works fine:
The key is specifying a different output folder, in this example |
Beta Was this translation helpful? Give feedback.
Looks like launching two separate instances works fine:
The key is specifying a different output folder, in this example
api-second
so that the generated files live separately and of course the port number so they can both run at the same time. My first thought was that I wanted them served under a single Counterfact server instance, but on reflection I think this will work just fine and more closely resembles the reality of two separate API hosts.