Last active
June 22, 2019 08:45
-
-
Save suwa33/e2a4ea4d5558b6995cf2f0affaa9447e to your computer and use it in GitHub Desktop.
Misskey質問
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWS EC2 | |
OS:Amazon Linux release 2 | |
$ -i ~/.ssh/MyKeyPair.pem ec2-user@ec2************ | |
$ sudo yum install https://rpm.nodesource.com/pub_11.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm | |
$ node -v #バージョンの確認 | |
$ sudo yum install postgresql.x86_64 | |
$ sudo yum install postgresql-server.x86_64 | |
$ sudo amazon-linux-extras install redis4.0 | |
- NodeJS | |
- PostgreSQL | |
- Redis | |
のインストールがここまでで終了 | |
$ sudo service postgresql initdb #DB初期化 | |
$ sudo service postgresql start #起動 | |
$ sudo service redis start #起動 | |
$ sudo useradd -p ****** misskey #misskeyユーザーの作成 | |
$ sudo yum install git #Gitインストール | |
$ sudo visudo #misskeyユーザーでsudoが使えるよう下記の様に設定 | |
## Allow root to run any commands anywhere | |
root ALL=(ALL) ALL | |
misskey ALL=(ALL) ALL | |
$ cd ~ | |
$ git clone -b master git://github.com/syuilo/misskey.git | |
$ cd misskey | |
$ git checkout master | |
$ exit #g++などの開発ツールを入れるため一度抜ける | |
$ sudo yum groupinstall "Development Tools" | |
$ sudo -u misskey -s | |
$ cd ~ | |
$ cd misskey | |
$ npm install | |
$ cp .config/example.yml .config/default.yml | |
? default.yml を編集する ←わからない | |
$ NODE_ENV=production npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[misskey@ip-172-31-41-82 misskey]$ NODE_ENV=production npm run build | |
> misskey@11.22.0 build /home/misskey/misskey | |
> webpack && gulp build | |
yes we can [================== ] 90% (90/100) 46.0s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment