You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Story card:**
[sc-16690](https://app.shortcut.com/simpledotorg/story/16690/ruby-2-7-4-2-7-8-and-rails-6-1-6-1-6-1-7-10-upgrade-works-on-sbx-but-failing-on-qa-vm-managed)
### **Because**
The application currently uses Ruby 2.7.4 and Rails 6.1.6.1. Upgrading
to Ruby 2.7.8 ensures stability before moving to Ruby 3.x, and addresses
inconsistencies observed between Kubernetes (SBX) and VM-managed (QA)
environments.
### **This addresses**
Manually installing Ruby 2.7.8 in the Docker image, removing the RVM
Ruby from the base Passenger image, and updating Rails to 6.1.7.10 to
ensure both SBX and QA environments run the correct versions.
### **Test instructions**
1.Deploy the updated Docker image (container-deployment).
2.Deploy the latest code (simple-server).
3.Access the pod in **SBX** or **QA**: **kubectl -n simple-v1 exec -it
simple-server-0 -c simple-server -- /bin/bas**h
4.Inside the pod as root, verify the versions:
**ruby -v # expect 2.7.8
rails -v # expect 6.1.7.10
bundle -v # expect 2.4.22**
5.Switch to the app user:
su - app
6.Run the same commands to confirm versions:
**ruby -v
rails -v
bundle -v**
All commands should return the upgraded versions, confirming the Ruby
and Rails updates are effective for both root and app users.
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,13 +107,13 @@ bin/docker-down
107
107
If the included `bin/setup` script fails for some reason, you can also manually
108
108
set up the application step by step. You can do so as follows.
109
109
110
-
First, you need to [install ruby](https://www.ruby-lang.org/en/documentation/installation). It is recommended to use [rbenv](https://github.com/rbenv/rbenv) to manage ruby versions. Note that we currently use Bundler version 2.3.22, so that is also hardcoded below.
110
+
First, you need to [install ruby](https://www.ruby-lang.org/en/documentation/installation). It is recommended to use [rbenv](https://github.com/rbenv/rbenv) to manage ruby versions. Note that we currently use Bundler version 2.4.22, so that is also hardcoded below.
111
111
112
112
Next, [install NodeJS v18.11.0](https://nodejs.org/en/) using [nvm](https://github.com/nvm-sh/nvm).
0 commit comments