Mastodon: Difference between revisions
| Line 53: | Line 53: | ||
* <tt>sudo apt-get install default-jre-headless</tt> | * <tt>sudo apt-get install default-jre-headless</tt> | ||
** You might ask, "[[User:Dank]], surely <tt>elasticsearch</tt> Depends on <tt>default-jre-headless</tt>?" | |||
** '''Narrator:''' It does not depend on <tt>default-jre-headless</tt>. | |||
* <tt>apt-key adv --fetch-keys https://artifacts.elastic.co/GPG-KEY-elasticsearch</tt> | * <tt>apt-key adv --fetch-keys https://artifacts.elastic.co/GPG-KEY-elasticsearch</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>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> | ||
* <tt>sudoedit /etc/elasticsearch/elasticsearch.yml</tt> and change <tt>network.host</tt> to 127.0.0.1 unless you love Romanian botnets all up in your shit | |||
* <tt>systemctl start elasticsearch</tt> | |||
* Add the following to <tt>.env.production</tt>: | * Add the following to <tt>.env.production</tt>: | ||
<pre> | <pre> | ||