Update manyfold-install.sh

This commit is contained in:
Bas van den Berg 2025-03-23 20:23:34 +01:00 committed by GitHub
parent b223fdbe40
commit 15768ab8c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,8 @@ $STD apt-get install -y \
libmariadb-dev \
redis-server \
nginx \
libffi-dev
libffi-dev \
libyaml-dev
msg_ok "Installed Dependencies"
msg_info "Setting up PostgreSQL"
@ -74,9 +75,11 @@ chown -R manyfold:manyfold /opt/manyfold
RUBY_VERSION=$(cat .ruby-version)
YARN_VERSION=$(grep '"packageManager":' package.json | sed -E 's/.*"(yarn@[0-9\.]+)".*/\1/')
$STD gem install bundler
rbenv install $RUBY_VERSION
rbenv global $RUBY_VERSION
sudo -u manyfold bash -c "bundle install"
$STD rbenv install $RUBY_VERSION
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
$STD rbenv global $RUBY_VERSION
$STD bundle install
$STD gem install sidekiq
$STD npm install --global corepack
corepack enable