From 1a14c6fdc0a178a05f0f2c53b8945b91d5451af8 Mon Sep 17 00:00:00 2001 From: vhsdream Date: Sun, 15 Feb 2026 15:45:38 -0500 Subject: [PATCH] Add more env vars to systemd file --- install/sure-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/sure-install.sh b/install/sure-install.sh index 758ba8fff..d270bef75 100644 --- a/install/sure-install.sh +++ b/install/sure-install.sh @@ -27,7 +27,6 @@ fetch_and_deploy_gh_release "Sure" "we-promise/sure" "tarball" "latest" "/opt/su PG_VERSION="$(sed -n '/postgres:/s/[^[:digit:]]*//p' /opt/sure/compose.example.yml)" setup_postgresql PG_DB_NAME=sure_production PG_DB_USER=sure_user setup_postgresql_db RUBY_VERSION="$(cat /opt/sure/.ruby-version)" RUBY_INSTALL_RAILS=false setup_ruby -source ~/.profile msg_info "Building Sure" cd /opt/sure @@ -66,6 +65,8 @@ After=network.target Type=simple WorkingDirectory=/opt/sure Environment=RAILS_ENV=production +Environment=BUNDLE_DEPLOYMENT=1 +Environment=BUNDLE_WITHOUT=development Environment=PATH=/root/.rbenv/shims:/root/.rbenv/bin:/usr/bin:\$PATH EnvironmentFile=/etc/sure/.env ExecStartPre=/opt/sure/bin/rails db:prepare