Fix setup script
This commit is contained in:
parent
07d2614a28
commit
ea2f390457
3 changed files with 56 additions and 6 deletions
|
@ -0,0 +1,34 @@
|
|||
RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 3.2.2
|
||||
rbenv global 3.2.2
|
||||
|
||||
gem install bundler --no-document
|
||||
|
||||
bundle config deployment 'true'
|
||||
bundle config without 'development test'
|
||||
bundle install -j$(getconf _NPROCESSORS_ONLN)
|
||||
|
||||
unlink /home/mastodon/setup2
|
||||
|
||||
echo << EOF
|
||||
|
||||
============== [kmyblue setup script 2 completed] ================
|
||||
|
||||
Input this command to finish setup:
|
||||
RAILS_ENV=production bundle exec rake mastodon:setup
|
||||
|
||||
If you update kmyblue version, use following:
|
||||
/home/mastodon/update
|
||||
|
||||
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