Add setup logs
This commit is contained in:
parent
37664ef3eb
commit
60e3611c73
4 changed files with 128 additions and 12 deletions
|
@ -1,14 +1,41 @@
|
|||
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
|
||||
cat << EOF
|
||||
|
||||
================== [kmyblue setup script 4] ======================
|
||||
Install Ruby
|
||||
|
||||
EOF
|
||||
|
||||
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
|
||||
RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 3.2.2
|
||||
rbenv global 3.2.2
|
||||
|
||||
cat << EOF
|
||||
|
||||
================== [kmyblue setup script 4] ======================
|
||||
Install Ruby bundler
|
||||
|
||||
EOF
|
||||
|
||||
gem install bundler --no-document
|
||||
|
||||
cd ~/live
|
||||
|
||||
cat << EOF
|
||||
|
||||
================== [kmyblue setup script 4] ======================
|
||||
Install yarn packages
|
||||
|
||||
EOF
|
||||
|
||||
yarn install --pure-lockfile
|
||||
|
||||
cat << EOF
|
||||
|
||||
================== [kmyblue setup script 4] ======================
|
||||
Install bundle packages
|
||||
|
||||
EOF
|
||||
|
||||
bundle config deployment 'true'
|
||||
bundle config without 'development test'
|
||||
bundle install -j$(getconf _NPROCESSORS_ONLN)
|
||||
|
@ -33,22 +60,13 @@ PostgreSQL and Redis are now available on localhost.
|
|||
|
||||
* Redis
|
||||
host : localhost
|
||||
password is empty
|
||||
|
||||
[IMPORTANT] Check PostgreSQL password before setup!
|
||||
|
||||
Input this command to finish setup:
|
||||
cd live
|
||||
RAILS_ENV=production bundle exec rake mastodon:setup
|
||||
|
||||
EOF
|
||||
|
||||
|
||||
# パスワード変更
|
||||
# sudo -u postgres psql << EOF
|
||||
# ALTER USER mastodon WITH PASSWORD 'ohagi';
|
||||
# EOF
|
||||
|
||||
# サーバー設定変更
|
||||
# sudo vi /etc/nginx/sites-available/mastodon
|
||||
|
||||
# サーバー起動・OS起動時自動起動設定
|
||||
# systemctl enable --now mastodon-web mastodon-sidekiq mastodon-streaming
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue