Hello,
this is a little plugin which allow to index data in Algolia Indexes.
https://github.com/mlamarque/algoliasearch-discourse
This plugin is work in progress to fetch data from front-office.
it’s, of course, open source, so help / feedback is welcome.
6 Likes
Bas
(Bas van Leeuwen)
August 2, 2017, 11:26am
2
Hi @matthieu_lamarque ,
I’d love to get this working! But I’m having some issues with the Docker install.
If you follow the original instructions, it won’t work, since it’ll be removed after a rebuild. So I guess I need to somehow get this into the app.yml
Simply adding any of the following variations to app.yml
yields errors and I don’t have the Ruby/Docker knowledge to debug them properly.
bundle exec rake plugin:install repo=https://github.com/mlamarque/algoliasearch-discourse.git
rake plugin:install repo=https://github.com/mlamarque/algoliasearch-discourse.git
git clone https://github.com/mlamarque/algoliasearch-discourse.git
They all yield (a variation of) NameError: uninitialized constant AlgoliaSearch
I have a feeling it’s a simple fix, if you or anyone else can, please help
fefrei
(Felix Freiberger)
August 2, 2017, 1:19pm
3
Yes, that’s it. Here’s how you do that:
This guide assumes that you have a self-hosted standard installation. We only support the standard method of install here, so these instructions assume you have a standard install .
This guide only applies to self-hosted Discourse instances. If you are using a managed hosting service, the available plugins are controlled by your hosting provider. For example, on our hosting these specific plugins are available by hosting tier.
In this tutorial, we’ll install the Discours…
1 Like
Bas
(Bas van Leeuwen)
August 2, 2017, 1:44pm
4
Hey Felix, that’s exactly where I’m stuck
My current app.yml
contains;
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- mkdir -p plugins
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/vinkas0/discourse-navigation.git
- git clone https://github.com/vinkas0/discourse-branding.git
- git clone https://github.com/discourse/discourse-solved.git
- git clone https://github.com/mlamarque/algoliasearch-discourse.git
The first three load perfectly fine, the last one fails
fefrei
(Felix Freiberger)
August 2, 2017, 2:53pm
5
YAML is very picky about whitespace. Remove the blank line (which contains a space) and make sure there aren’t any tabs in there, then try again
Bas
(Bas van Leeuwen)
August 2, 2017, 3:05pm
6
Thanks for the debugging, but that’s not it either unfortunately
this fails:
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- mkdir -p plugins
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/vinkas0/discourse-navigation.git
- git clone https://github.com/vinkas0/discourse-branding.git
- git clone https://github.com/discourse/discourse-solved.git
- git clone https://github.com/mlamarque/algoliasearch-discourse.git
this works (but of course, doesn’t install the plugin):
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- mkdir -p plugins
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/vinkas0/discourse-navigation.git
- git clone https://github.com/vinkas0/discourse-branding.git
- git clone https://github.com/discourse/discourse-solved.git
# - git clone https://github.com/mlamarque/algoliasearch-discourse.git
fefrei
(Felix Freiberger)
August 2, 2017, 3:31pm
7
Can you post the log from the rebuild
command?
The plugin may be incompatible with current versions of Discourse.
1 Like
Bas
(Bas van Leeuwen)
August 3, 2017, 11:52am
8
Yeah, I’m afraid that it might be outdated
Log is rather long, relevant part:
(...)
Bundled gems are installed into ./vendor/bundle.
I, [2017-08-03T11:42:56.485801 #14] INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
NameError: uninitialized constant AlgoliaSearch
/var/www/discourse/plugins/algoliasearch-discourse/plugin.rb:9:in `block in activate!'
/var/www/discourse/lib/plugin/instance.rb:208:in `block in notify_after_initialize'
(...)
Full log: log.txt.gz (41.9 KB)
Bas
(Bas van Leeuwen)
September 25, 2017, 9:36am
9
fyi: one of our Ruby devs made a PR on this which was accepted
Plugin is no longer #plugin:broken-plugin
5 Likes