Hi,
I run Agola using
$ agola serve --components all-base --config config.yml
but it seems the web server only responds with a blank page:
$ curl -i localhost:3000
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Date: Thu, 20 Jul 2023 09:10:41 GMT
Content-Length: 13
<pre>
</pre>
Port 3000 is what I configured it to listen on:
gateway:
web:
listenAddress: ":3000"
There’s nothing logged upon accessing the web server.
Any ideas what I’m missing? I use the sample configuration with a local sqlite database.
After some digging in the Make- and Dockerfiles I found I need to compile my Agola together with the web bundle from the agola-web repository.
That got me a bit further, still a blank page, but more code:
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- <meta name="viewport" content="width=device-width,initial-scale=1.0" /> -->
<meta name="viewport" content="width=1024" />
<link rel="icon" href="./src/assets/favicon.png" />
<title>Agola</title>
<script type="module" crossorigin src="/assets/index-566bca83.js"></script>
<link rel="stylesheet" href="/assets/index-7bb55828.css">
</head>
<body>
<noscript>
<strong
>We're sorry but agola doesn't work properly without JavaScript enabled.
Please enable it to continue.
</strong>
</noscript>
<div id="app" class="w-full h-full text-dark"></div>
</body>
</html>
I now serve the web contents directly using nginx and proxy /api
and /oauth2
to the Agola gateway component. This works nicely!