From c3def926f1d41094d20cd28fd719e8db6334b770 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 28 Jan 2026 10:40:40 +1100 Subject: [PATCH 1/2] Fail setup script when nodenv is missing --- bin/setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/setup b/bin/setup index 48d344fb83..68a3b32e2b 100755 --- a/bin/setup +++ b/bin/setup @@ -21,8 +21,8 @@ FileUtils.chdir APP_ROOT do system("bundle check 2> /dev/null") || system!(BUNDLE_ENV, "bundle install") # Install JavaScript dependencies - system("script/nodenv-install.sh") - system("bin/yarn") + system!("script/nodenv-install.sh") + system!("bin/yarn") # puts "\n== Copying sample files ==" # unless File.exist?("config/database.yml") From 6fb4048bfdbbaca183553721e357fcb7c9634363 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 28 Jan 2026 13:47:18 +1100 Subject: [PATCH 2/2] Add context: this script will be used to deploy production --- bin/setup | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/setup b/bin/setup index 68a3b32e2b..c9274099d6 100755 --- a/bin/setup +++ b/bin/setup @@ -1,4 +1,10 @@ #!/usr/bin/env ruby +# +# Install dependencies and migrate data during production deployments or +# when updating your development environment. +# +# Take care when changing it and consider the ofn-install repository for +# the context of deployments. require "fileutils" # path to your application root.