2024-10-10 22:36:29 +09:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euox pipefail
|
|
|
|
|
|
|
|
cd /home/mastodon
|
|
|
|
git clone https://github.com/mastodon/mastodon.git live && cd live
|
2024-10-11 18:38:45 +09:00
|
|
|
git checkout "$(git tag -l | grep '^v[0-9.]*$' | sort -V | tail -n 1)"
|
2024-10-10 22:36:29 +09:00
|
|
|
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
|
|
|
|
{
|
2024-10-11 18:38:45 +09:00
|
|
|
# shellcheck disable=SC2016
|
2024-10-10 22:36:29 +09:00
|
|
|
echo 'export PATH="$HOME/.rbenv/bin:$PATH"'
|
2024-10-11 18:38:45 +09:00
|
|
|
# shellcheck disable=SC2016
|
2024-10-10 22:36:29 +09:00
|
|
|
echo 'eval "$(rbenv init -)"'
|
|
|
|
} | tee -a ~/.bashrc ~/.profile
|
2024-10-11 18:38:45 +09:00
|
|
|
# shellcheck disable=SC1090
|
2024-10-10 22:36:29 +09:00
|
|
|
source ~/.profile
|
|
|
|
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
|
|
|
|
RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install
|
|
|
|
bundle config deployment 'true'
|
|
|
|
bundle config without 'development test'
|
2024-10-11 18:38:45 +09:00
|
|
|
bundle install -j"$(getconf _NPROCESSORS_ONLN)"
|
|
|
|
yarn install
|