This file contains hidden or 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
#いつものごとくMastodonを一旦止める | |
systemctl stop mastodon-{web,sidekiq,streaming}.service | |
#リリースノートに書いてある Node.js 8 を入れる | |
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
sudo apt update && sudo apt install nodejs | |
#リリースノートに書いてある nginx のサイズを上げる | |
nano /etc/nginx/sites-available/example.com.conf | |
↑この場所は各自設置しているファイルの場所を指定 |
This file contains hidden or 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
<CORSConfiguration> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<MaxAgeSeconds>3000</MaxAgeSeconds> | |
</CORSRule> | |
</CORSConfiguration> |
This file contains hidden or 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
# Optional alias for S3 (e.g. to serve files on a custom domain, possibly using Cloudfront or Cloudflare) | |
S3_CLOUDFRONT_HOST=media.mydomain.com ←ここに自分の設定した Cloudflare の CNAME 入れる | |
ちなみに | |
S3_ALIAS_HOSTNAME=media.mydomain.com ←最新の.env.productionにはこう書かれててこれでもいける。これのほうが良いかも。 |
This file contains hidden or 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
su - #kusanagi ユーザから root へ | |
kusanagi ssl --email <自分のメールアドレス> | |
#上のコマンドだけで設定が始まる | |
<中略> | |
#ずらずらいろいろとインストールや結果が出て | |
<中略> | |
- Congratulations! Your certificate and chain have been saved at: |
This file contains hidden or 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
#Mastodonを止める | |
systemctl stop mastodon-{web,sidekiq,streaming}.service | |
#Mastodonユーザになる | |
sudo su - mastodon | |
#Mastodonのおいてあるディレクトリに移る | |
cd ~/live | |
#git fetchで最新のデータを引いてくる |
This file contains hidden or 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
S3_ENABLED=true | |
S3_BUCKET=media.yourdomain.com ← 自分の作ったバケット名(mediaなどをつけてエイリアスを使う場合はOptionalも設定する) | |
AWS_ACCESS_KEY_ID=ABCDEFGHIJKLMNOPQRST ← 設定されたアクセスキー | |
AWS_SECRET_ACCESS_KEY=ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890abcd ← 設定されたシークレットキー | |
S3_REGION=ap-northeast-1 ← 東京リージョンならこれ | |
S3_PROTOCOL=https | |
S3_ENDPOINT=https://s3-ap-northeast-1.amazonaws.com ← 東京リージョンならこれ | |
# Optional alias for S3 (e.g. to serve files on a custom domain, possibly using Cloudfront or Cloudflare) | |
S3_CLOUDFRONT_HOST=media.yourdomain.com ←ここに自分の設定した S3Bucket と Cloudflare で合わせた CNAME 入れる |
This file contains hidden or 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
#Mastodonを止める | |
systemctl stop mastodon-{web,sidekiq,streaming}.service | |
#Mastodonユーザになる | |
sudo su - mastodon | |
#Rubyのアップデートをするためにrbenvのおいてあるディレクトリに移り最新版をダウンロード | |
cd ~/.rbenv | |
git pull | |
#同じようにプラグインのディレクトリに移り最新版をダウンロード |
This file contains hidden or 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
#Mastodonのおいてあるディレクトリに移る | |
cd ~/live | |
#マスターに移り、最新版を持ってくる | |
git checkout master | |
git pull | |
git checkout v2.2.0 | |
#いつものようにインストール作業をする | |
gem install bundler |
This file contains hidden or 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
#Mastodonユーザになる | |
sudo su - mastodon | |
#Mastodonのおいてあるディレクトリに移る | |
cd ~/live | |
#マスターに移り、最新版を持ってくる | |
git checkout master | |
git pull | |
git checkout v2.2.0 |
This file contains hidden or 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
# systemctl stop mastodon* | |
# su - mastodon | |
$ cd ~/.rbenv | |
$ git pull | |
$ cd ~/.rbenv/plugins/ruby-build | |
$ git pull | |
$ cd ~/.rbenv | |
$ rbenv install 2.4.2 | |
$ rbenv global 2.4.2 |
OlderNewer