The personal finance app for everyone (by everyone)
Ruby
Keep Codex running with new 3.4.7 Ruby
Juan José Mata972648b66db2
diff --git a/bin/codex-env b/bin/codex-envindex 8c60a7a19d..f03bd72a95 100755--- a/bin/codex-env+++ b/bin/codex-env@@ -37,6 +37,20 @@ runuser -l postgres -c "createuser -s $(whoami)" 2>/dev/null || echo "User may aecho "Starting Redis server..."service redis-server start+# Check Ruby version compatibility+RUBY_VERSION=$(cat .ruby-version | tr -d '[:space:]')+CURRENT_RUBY=$(ruby -v | awk '{print $2}' | cut -d'p' -f1)+echo "Ruby version check: $CURRENT_RUBY (required: $RUBY_VERSION)"++# Removing Ruby version requirement from Gemfile+if [ "$CURRENT_RUBY" != "$RUBY_VERSION" ]; then+ echo "Ruby version mismatch — commenting ruby version requirement in Gemfile..."+ # Only comment if the line isn't already commented+ sed -i 's/^ruby file: "\.ruby-version"$/#&/' Gemfile+ # Ignore Gemfile changes for this session+ git update-index --assume-unchanged Gemfile Gemfile.lock+fi+echo "Environment setup completed successfully!"echo "PostgreSQL and Redis are now running."echo "You can now run 'bin/setup' to prepare your Rails application and database."