Mastodon: Difference between revisions

Line 55: Line 55:
* <tt>echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list</tt>
* <tt>echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-7.x.list</tt>
* <tt>sudo apt-get update && sudo apt-get install elasticsearch</tt>
* <tt>sudo apt-get update && sudo apt-get install elasticsearch</tt>
* Add the following to <tt>.env.production</tt>:
<pre>
ES_ENABLED=true
ES_HOST=localhost
ES_PORT=9200
</pre>
* Restart <tt>mastodon-sidekiq</tt> and <tt>mastodon-web</tt> units
* <tt>RAILS_ENV=production bin/tootctl search deploy</tt>