Inhalt
OpenProjekt-Updates
Update grob umrissen:
VERSION=10.5.1
pushd ~
wget https://github.com/opf/openproject/archive/v${VERSION}.tar.gz
tar xzf v${VERSION}.tar.gz
# TODO Ausbauen zu allen Dateien unter openproject-skel, rsync
cp openproject-skel/public/* openproject-${VERSION}/public/
for p in ~/.rbenv ~/.rbenv/plugins/ruby-build ~/.nodenv ~/.nodenv/plugins/node-build; do
pushd $p
git pull
popd
done
pushd ~/openproject-${VERSION}
# Falls neue Ruby-Version nötig:
RUBY_VERSION=2.6.6
rbenv install ${RUBY_VERSION}
rbenv local ${RUBY_VERSION}
rbenv rehash
gem install bundler
gem update --system
gem update --bundler
bundle update --bundler
bundle install --deployment --without mysql2 sqlite development test therubyracer docker
npm install
npm audit
RAILS_ENV=production ./bin/rake assets:precompile
RAILS_ENV=production ./bin/rake db:migrate
popd
rm openproject
ln -s openproject-${VERSION} openproject
touch openproject/tmp/restart.txt
popd