Running apps with multiple modules

For applications such as ours that have multiple modules, we need to list out all the YAML files for the goapp command.

To serve our new application, in a terminal, execute this:

goapp serve dispatch.yaml default/app.yaml api/app.yaml
     web/app.yaml

Starting with the dispatch file, we are listing all the associated configuration files. If you miss any, you will see an error when you try to serve your application. Here, you will notice that the output now lists that each module is being deployed on a different port:

Running apps with multiple modules

We can access modules directly by visiting each port, but luckily we have our dispatcher running on ...

Get Go Programming Blueprints - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.