Redmine 6.1 with full_text_search plugin, configured for Railway deployment with PGroonga.
Add the PGroonga template to your Railway project.
Add this repository as a new service in your Railway project.
Set the following variables for the Redmine service (reference PGroonga service variables):
| Variable | Value |
|---|---|
REDMINE_DB_POSTGRES |
${{PGroonga.PGHOST_PRIVATE}} |
REDMINE_DB_PORT |
${{PGroonga.PGPORT_PRIVATE}} |
REDMINE_DB_USERNAME |
${{PGroonga.PGUSER}} |
REDMINE_DB_PASSWORD |
${{PGroonga.PGPASSWORD}} |
REDMINE_DB_DATABASE |
${{PGroonga.PGDATABASE}} |
REDMINE_PLUGINS_MIGRATE |
true |
RAILS_ENV |
production |
{
"RAILS_ENV": "production",
"REDMINE_DB_DATABASE": "${{PGroonga.PGDATABASE}}",
"REDMINE_DB_PASSWORD": "${{PGroonga.PGPASSWORD}}",
"REDMINE_DB_PORT": "${{PGroonga.PGPORT_PRIVATE}}",
"REDMINE_DB_POSTGRES": "${{PGroonga.PGHOST_PRIVATE}}",
"REDMINE_DB_USERNAME": "${{PGroonga.PGUSER}}",
"REDMINE_PLUGINS_MIGRATE": "true"
}Tip: Want to try full-text search quickly? You can load test data after deployment. See steps 4-7 for details.
Install Railway CLI.
railway --version
railway x.xx.xxPlease link to your target project and service. After using the following command, you can choose the project and service using shell.
railway linkTo try out full-text search immediately, load sample data:
railway ssh --session
bin/rails db:fixtures:loadAfter deployment, run the following command to create indexes for existing data:
railway ssh --session
bin/rails full_text_search:synchronizeGPL v2 or later. See COPYING for details.