Skip to content

Instantly share code, notes, and snippets.

@josecanhelp
Last active September 5, 2024 12:06
Show Gist options
  • Save josecanhelp/126d627ef125538943f33253d16fc882 to your computer and use it in GitHub Desktop.
Save josecanhelp/126d627ef125538943f33253d16fc882 to your computer and use it in GitHub Desktop.
Install MeiliSearch on Forge servers

Although MeiliSearch offers steps to install via apt, there are some dependency libraries that are not installable on the server architecture we have availble on our Tighten Forge servers. However, the servers can run the program just fine with the binary. Here are the steps I took to make it work.

Download the stable release

curl -L https://install.meilisearch.com | sh

Change the ownership and modify permissions

chmod 755 meilisearch chown root:root meilisearch

Move the binary to a system-wide available path

sudo mv meilisearch /usr/bin/

Run the binary and monitor it for long runtimes within Forge

In the Forge Dashboard, click on "Daemons" under "Server Details". Fill out the following for a new daemon:

Command: meilisearch --master-key=SOME_MASTER_KEY --env=production --http-addr 0.0.0.0:7700 --db-path ./home/forge/meilifiles User: forge Directory: leave blank Processes: 1

@cristiancalara
Copy link

I was getting an "Error: Permission denied (os error 13)" if I left the directory blank. It might have been because I didn't have the "default" site still in Forge. To get it working, I added "/home/forge" as the directory.

@GregPeden
Copy link

I had the same issue as @cristiancalara; his suggestion fixed it. Thanks both of you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment