From ea73de78edb8f8735146402e6d9371a8a3667856 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 4 Nov 2022 14:38:38 -0700 Subject: [PATCH] refactor readme --- README.md | 42 ++++++++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index d5e88a01a..fcf22e8c3 100644 --- a/README.md +++ b/README.md @@ -37,13 +37,17 @@ - ๐Ÿ“œ Instance list: https://calckey.fediverse.observer/list - ๐Ÿ“– JoinFediverse Wiki: https://joinfediverse.wiki/What_is_Calckey%3F -# ๐Ÿ‚ Starting a new instance +# ๐ŸŒ  Getting started -You need at least ๐Ÿข NodeJS v16.15.0 (v18.20.0 recommended!) and at least ๐Ÿงถ Yarn v3.2! +This guide will work for both **starting from scratch** and **migrating from Misskey**. -# ๐Ÿšš Migrating from Misskey to Calckey +# ๐Ÿณ -You need at least ๐Ÿข NodeJS v16.15.0 (v19 recommended!) and at least ๐Ÿงถ Yarn v3.2! +# ๐Ÿ”จ Building from source + +You need at least ๐Ÿข NodeJS v16.15.0 (v18.20.0 recommended!) and at least ๐Ÿงถ Yarn v3! + +> โš ๏ธ NodeJS v19 is not supported as of right now because of [this issue](https://github.com/nodejs/node-gyp/issues/2757). ## ๐Ÿ‘€ Get folder ready @@ -51,8 +55,6 @@ You need at least ๐Ÿข NodeJS v16.15.0 (v19 recommended!) and at least ๐Ÿงถ Yarn git clone https://codeberg.org/thatonecalculator/calckey.git cd calckey/ # git checkout main # if you want only stable versions -cp ../misskey/.config/default.yml ./.config/default.yml # replace `../misskey/` with misskey path, replace `default.yml` with `docker.yml` if you use docker -# cp -r ../misskey/files . # if you don't use object storage ``` ## ๐Ÿ“ฉ Install dependencies @@ -68,9 +70,19 @@ yarn set version berry - To add custom CSS for all users, edit `./custom/instance.css`. - To add static assets (such as images for the splash screen), place them in the `./custom/` directory. They'll then be avaliable on `https://yourinstance.tld/static-assets/filename.ext`. +## ๐Ÿšš Migrating from Misskey to Calckey + +> โš ๏ธ Because of their changes, migrating from Foundkey is not supported. + +```sh +cp ../misskey/.config/default.yml ./.config/default.yml # replace `../misskey/` with misskey path, replace `default.yml` with `docker.yml` if you use docker +cp -r ../misskey/files . # if you don't use object storage +``` + ## ๐Ÿš€ Build and launch! -### `git pull` and run these steps to update Calckey in the future! +### ๐Ÿข NodeJS +#### `git pull` and run these steps to update Calckey in the future! ```sh # git pull @@ -79,11 +91,17 @@ NODE_ENV=production yarn run build && yarn run migrate # Edit service to point to calckey folder and restart! ``` -## ๐Ÿณ Docker +### ๐Ÿ‹ Prebuilt Docker image ```sh -# git pull -docker compose build -# docker compose stop misskey -docker compose up -d +docker pull thatonecalculator:calckey +docker up -d +``` + +### ๐Ÿณ Docker Compose + +```sh +sudo docker compose build +sudo docker-compose run --rm web yarn run init +sudo docker compose up -d ```