clicepfl / website

CLIC website software built with Strapi, NextJS + React and Meilisearch as Docker services
https://github.com/orgs/clicepfl/projects/3
GNU Affero General Public License v3.0
6 stars 0 forks source link

bug: strapi port must match in the container and on local bind port #19

Closed codeofmochi closed 1 year ago

codeofmochi commented 1 year ago

There seems to be a bug when strapi is started on a given port in the container, and then port mapped to another on the local host. When loading the admin panel, the following error message is shown:

Strapi: Warning an error occurred while requesting the API

Not sure if this is caused by the port map, or because the build command was not executed after port changes. For now, we'll standardize such that Strapi is at port 8001 both inside and outside of the container, and we'll revisit this when we will configure the reverse proxy

Thechi2000 commented 1 year ago

According to this post, strapi needs to be built even in dev mode

codeofmochi commented 1 year ago

Re-closed by #21

Robb-Fr commented 1 year ago

I can confirm it works for me now :)