From b51fa539322e7051fb0d34e2a143dca400630617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tao=20Bojl=C3=A9n?= <2803708-taobojlen@users.noreply.gitlab.com> Date: Fri, 2 Aug 2019 14:42:49 +0000 Subject: [PATCH] Update README.md --- README.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8c152c9..a6aee0d 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ This project doesn't crawl personal instances: the goal is to understand communi You don't have to follow these instructions, but it's one way to set up a continuous deployment pipeline. The following are for the backend; the frontend is just a static HTML/JS site that can be deployed anywhere. 1. Install [Dokku](http://dokku.viewdocs.io/dokku/) on your web server. -2. Install [dokku-postgres](https://github.com/dokku/dokku-postgres), [dokku-monorepo](https://github.com/notpushkin/dokku-monorepo), and [dokku-letsencrypt](https://github.com/dokku/dokku-letsencrypt). +2. Install [dokku-postgres](https://github.com/dokku/dokku-postgres), [dokku-monorepo](https://github.com/notpushkin/dokku-monorepo), [dokku-elasticsearch](https://github.com/dokku/dokku-elasticsearch), and [dokku-letsencrypt](https://github.com/dokku/dokku-letsencrypt). 3. Create the apps - `dokku apps:create phoenix` @@ -75,14 +75,19 @@ You don't have to follow these instructions, but it's one way to set up a contin - `dokku postgres:link fediversedb phoenix` - `dokku postgres:link fediversedb gephi` -5. Update the backend configuration. In particular, change the `user_agent` in [config.exs](/backend/config/config.exs) to something descriptive. -6. Push the apps, e.g. `git push dokku@:phoenix` (note that the first push cannot be from the CD pipeline). -7. Set up SSL for the Phoenix app +5. Set up ElasticSearch + +- `dokku elasticsearch:create fediverse` +- `dokku elasticsearch:link fediverse phoenix` + +6. Update the backend configuration. In particular, change the `user_agent` in [config.exs](/backend/config/config.exs) to something descriptive. +7. Push the apps, e.g. `git push dokku@:phoenix` (note that the first push cannot be from the CD pipeline). +8. Set up SSL for the Phoenix app - `dokku letsencrypt phoenix` - `dokku letsencrypt:cron-job --add` -8. Set up a cron job for the graph layout (use the `dokku` user). E.g. +9. Set up a cron job for the graph layout (use the `dokku` user). E.g. ``` SHELL=/bin/bash