strapi-plugin-meilisearch icon indicating copy to clipboard operation
strapi-plugin-meilisearch copied to clipboard

Reload server button did not work with PM2 applications

Open mvaisberg opened this issue 2 years ago • 1 comments

Description My strapi is running in the server with PM2.

The reload server button that appear when a content-type is in status "realoaded needed" do not restart the pm2 app.

Expected behavior What you expected to happen.

Current behavior What happened.

Screenshots or Logs If applicable, add screenshots or logs to help explain your problem.

Environment (please complete the following information):

  • OS: [e.g. Debian GNU/Linux]
  • Meilisearch version: [e.g. v.0.20.0]
  • strapi-plugin-meilisearch version: [e.g v0.3.1]
  • Browser: [e.g. Chrome version 90.0]
  • Strapi version: [e.g. v3.6.2]

mvaisberg avatar Oct 11 '23 20:10 mvaisberg

Hi @mvaisberg, I'm not familiar with pm2, but I assume you need that to ensure the high availability of your instance in production. I also assume that you're trying to click on reload needed in production.

Because this only works in development mode: https://github.com/meilisearch/strapi-plugin-meilisearch/blob/a48219fc1a86af54f59f407f295d47fe2c264f1c/server/controllers/reload.js#L10

We are a small team, so we can’t spend much time doing support on this specific repo anymore 😢. I would recommend going to our Discord instead. The community will be able to help you, no matter your question.

Thank you very much for using Meilisearch :)

brunoocasali avatar Oct 17 '23 17:10 brunoocasali