Skip to content

Instantly share code, notes, and snippets.

@josecanhelp
Last active January 7, 2025 23:56
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!

@vgavrilovikj
Copy link

how can I check if it runs properly? I am trying to access my domain:7700 but it does not give anything

@joshuadegier
Copy link

@vgavrilovikj: you probably need to open the port in your server (Forge > server > Network > New firewarll rule)

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