This article covers how to deploy Meilisearch on Railway with a single click and how to secure your newly-created instance.
MEILI_ENV
: by default, this template sets the MEILI_ENV
environment variable to production
. If you would like access to the Meilisearch search preview, update MEILI_ENV
to development
.
MEILI_MASTER_KEY
: replace the MEILI_MASTER_KEY
environment variable with a strong key to secure your Meilisearch instance.
If you want to quickly generate a secure random key, you can run the following command from your terminal:
| cut -c-${DESIRED_LENGTH}
or | head -c${DESIRED_LENGTH}
to the command as such:
MEILI_ENV
environment variable to development
in the Railway service, you will have access to the Meilisearch search preview.
Copy the public URL (for example, meilisearch-production-up.railway.app
) of your project from your Railway account dashboard and paste it into your browser.