Init Mastodon
This commit is contained in:
parent
e026eeac35
commit
ce5f1f40ac
3 changed files with 105 additions and 0 deletions
18
run/mastodon/workspace/setup_mastodon.sh
Normal file
18
run/mastodon/workspace/setup_mastodon.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euox pipefail
|
||||
|
||||
cd /home/mastodon
|
||||
git clone https://github.com/mastodon/mastodon.git live && cd live
|
||||
git checkout $(git tag -l | grep '^v[0-9.]*$' | sort -V | tail -n 1)
|
||||
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
|
||||
{
|
||||
echo 'export PATH="$HOME/.rbenv/bin:$PATH"'
|
||||
echo 'eval "$(rbenv init -)"'
|
||||
} | tee -a ~/.bashrc ~/.profile
|
||||
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'
|
||||
bundle install -j$(getconf _NPROCESSORS_ONLN)
|
||||
yarn install --yes
|
Loading…
Add table
Add a link
Reference in a new issue