Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Essem
Sharkey
Commits
7276ec18
Commit
7276ec18
authored
6 years ago
by
Aya Morisawa
Browse files
Options
Downloads
Patches
Plain Diff
Update setup docs
parent
e063ac10
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/setup.en.md
+2
-2
2 additions, 2 deletions
docs/setup.en.md
docs/setup.ja.md
+81
-23
81 additions, 23 deletions
docs/setup.ja.md
with
83 additions
and
25 deletions
docs/setup.en.md
+
2
−
2
View file @
7276ec18
...
...
@@ -13,7 +13,7 @@ This guide describes how to install and setup Misskey.
Running misskey on root is not a good idea so we create a user for that.
In debian for exemple :
```
```
adduser --disabled-password --disabled-login misskey
```
...
...
@@ -67,7 +67,7 @@ web-push generate-vapid-keys
*6.* Make configuration file
----------------------------------------------------------------
1.
`cp .config/example.yml .config/default.yml`
Copy the
`.config/example.yml`
and rename it to
`default.yml`
.
2.
Edit
it
2.
Edit
`default.yml`
*7.* Build Misskey
----------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
docs/setup.ja.md
+
81
−
23
View file @
7276ec18
...
...
@@ -8,18 +8,13 @@ Misskeyサーバーの構築にご関心をお寄せいただきありがとう
----------------------------------------------------------------
*1.*
reCAPTCHAトークンの用意
*1.*
Misskeyユーザーの作成
----------------------------------------------------------------
MisskeyはreCAPTCHAトークンを必要とします。
https://www.google.com/recaptcha/intro/ にアクセスしてトークンを生成してください。
*(オプション)* VAPIDキーペアの生成
----------------------------------------------------------------
ServiceWorkerを有効にする場合、VAPIDキーペアを生成する必要があります:
Misskeyのrootで実行しない方がよいため、代わりにユーザーを作成します。
Debianの例:
```
shell
npm
install
web-push
-g
web-push generate-vapid-keys
```
adduser --disabled-password --disabled-login misskey
```
*2.* 依存関係をインストールする
...
...
@@ -35,34 +30,98 @@ web-push generate-vapid-keys
##### オプション
*
[
Elasticsearch
](
https://www.elastic.co/
)
- 検索機能を向上させるために用います。
*3.* M
isskeyのインストール
*3.* M
ongodbの設定
----------------------------------------------------------------
1.
`git clone -b master git://github.com/syuilo/misskey.git`
2.
`cd misskey`
3.
`npm install`
ルートで:
1.
`mongo`
mongoシェルを起動
2.
`use misskey`
misskeyデータベースを使用
3.
`db.users.save( {dummy:"dummy"} )`
ダミーデータを書き込みDBを初期化
4.
`db.createUser( { user: "misskey", pwd: "<password>", roles: [ { role: "readWrite", db: "misskey" } ] } )`
misskeyユーザーを作成
5.
`exit`
mongoシェルを終了
*4.* Misskeyのインストール
----------------------------------------------------------------
1.
`su - misskey`
misskeyユーザーを使用
2.
`git clone -b master git://github.com/syuilo/misskey.git`
masterブランチからMisskeyレポジトリをクローン
3.
`cd misskey`
misskeyディレクトリに移動
4.
`git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)`
[
最新のリリース
](
https://github.com/syuilo/misskey/releases/latest
)
を確認
5.
`npm install`
Misskeyの依存パッケージをインストール
*5.* reCAPTCHAトークン
----------------------------------------------------------------
MisskeyはreCAPTCHAトークンを必要とします。
https://www.google.com/recaptcha/intro/ にアクセスしてトークンを生成してください。
*(オプション)* VAPIDキーペアの生成
----------------------------------------------------------------
ServiceWorkerを有効にする場合、VAPIDキーペアを生成する必要があります:
```
shell
npm
install
web-push
-g
web-push generate-vapid-keys
```
*
4
.*
設定ファイルを作成する
*
6
.*
Make configuration file
----------------------------------------------------------------
`.config/example.yml`
をコピーしたのち
`default.yml`
にリネームして編集してください。
1.
`cp .config/example.yml .config/default.yml`
`.config/example.yml`
をコピーし名前を
`default.yml`
にする。
2.
`default.yml`
を編集する。
*
5
.* Misskeyのビルド
*
7
.* Misskeyのビルド
----------------------------------------------------------------
次のコマンドでMisskeyをビルドしてください:
`npm run build`
Debianをお使いであれば、
`build-essential`
パッケージをインストールする必要があります。
何らかのモジュールでエラーが発生する場合はnode-gypを使ってください:
1.
`npm install -g node-gyp`
2.
`node-gyp configure`
3.
`node-gyp build`
4.
`npm run build`
*6.* 以上です!
----------------------------------------------------------------
お疲れ様でした。これでMisskeyを動かす準備は整いました。
### 起動
`sudo npm start`
するだけです。GLHF!
### 通常起動
`npm start`
するだけです。GLHF!
### systemdを用いた起動
1.
systemdサービスのファイルを作成:
`/etc/systemd/system/misskey.service`
2.
エディタで開き、以下のコードを貼り付けて保存:
```
[Unit]
Description=Misskey daemon
[Service]
Type=simple
User=misskey
ExecStart=/usr/bin/npm start
WorkingDirectory=/home/misskey/misskey
TimeoutSec=60
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=misskey
Restart=always
[Install]
WantedBy=multi-user.target
```
3.
`systemctl daemon-reload ; systemctl enable misskey`
systemdを再読み込みしmisskeyサービスを有効化
4.
`systemctl start misskey`
misskeyサービスの起動
`systemctl status misskey`
と入力すると、サービスの状態を調べることができます。
### Misskeyを最新バージョンにアップデートする方法:
1.
`git reset --hard && git pull origin master`
2.
`npm install`
3.
`npm run build`
1.
`git fetch`
2.
`git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1)`
3.
`npm install`
4.
`npm run build`
## メモリが足りなくてビルドできない場合
Misskeyの(クライアントの)ビルドには、目安として8GBくらいのメモリを必要とします。
...
...
@@ -74,4 +133,3 @@ VPSなどでビルドする時は、もしかしたらメモリが足りなく
3.
npm run webpack
4.
built/client をサーバーにアップロードする
5.
サーバー上で、npm run gulp
6.
完了
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment