Compare commits

..
Author SHA1 Message Date
MickLesk 756d5e2e29 sure: keep Active Storage uploads across updates 2026-10-01 23:22:37 +02:00
2 changed files with 4 additions and 3 deletions
+2
View File
@@ -65,7 +65,9 @@ EOF
msg_ok "Stopped services"
fi
create_backup /opt/sure/storage
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "Sure" "we-promise/sure" "tarball" "latest" "/opt/sure"
restore_backup
RUBY_VERSION="$(cat /opt/sure/.ruby-version)" RUBY_INSTALL_RAILS=false HOME=/root setup_ruby
msg_info "Updating Sure"
+2 -3
View File
@@ -60,9 +60,8 @@ function update_script() {
msg_info "Running Database Migrations"
cd /opt/twenty/packages/twenty-server
set -a && source /opt/twenty/.env && set +a
$STD yarn command:prod cache:flush || true
$STD yarn command:prod upgrade
$STD yarn command:prod cache:flush || true
$STD npx ts-node ./scripts/setup-db.ts
$STD npx -y typeorm migration:run -d dist/database/typeorm/core/core.datasource
msg_ok "Ran Database Migrations"
msg_info "Starting Services"