Compare commits

..
2 changed files with 3 additions and 4 deletions

No files matched your search

-2
View File
@@ -65,9 +65,7 @@ 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"
+3 -2
View File
@@ -60,8 +60,9 @@ function update_script() {
msg_info "Running Database Migrations"
cd /opt/twenty/packages/twenty-server
set -a && source /opt/twenty/.env && set +a
$STD npx ts-node ./scripts/setup-db.ts
$STD npx -y typeorm migration:run -d dist/database/typeorm/core/core.datasource
$STD yarn command:prod cache:flush || true
$STD yarn command:prod upgrade
$STD yarn command:prod cache:flush || true
msg_ok "Ran Database Migrations"
msg_info "Starting Services"