Skip to content

Commit

Permalink
Merge pull request #410 from dylan8902/upgrade-ruby-3.3
Browse files Browse the repository at this point in the history
Upgrade to ruby 3.3
  • Loading branch information
dylan8902 authored Jan 3, 2024
2 parents be9bcc3 + a47cea7 commit eb5402a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.2'
ruby-version: '3.3.0'
bundler-cache: true
- name: Run security tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.2'
ruby-version: '3.3.0'
bundler-cache: true
- name: Create database
run: |
Expand Down
8 changes: 4 additions & 4 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ brew install mysql
- Setup Ruby and Rails

``` bash
rvm install 3.2.2
rvm use 3.2.2 --default
rvm install ruby-3.3.0 --reconfigure --enable-yjit --with-openssl-dir=$(brew --prefix openssl@1.1)
rvm use 3.3.0 --default
bundle install
```

Expand Down Expand Up @@ -59,8 +59,8 @@ ssh-keygen -t rsa -C "your_email@example.com"
rm -rf /home/rails
git clone git@github.com:dylan8902/website.git /home/rails
cd /home/rails
rvm install 3.2.2
rvm use 3.2.2 --default
rvm install 3.3.0
rvm use 3.3.0 --default
bundle install
```

Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source 'https://rubygems.org'

ruby '3.2.2'
ruby '3.3.0'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '>= 7.0.1', '< 7.1'
Expand Down
1 change: 1 addition & 0 deletions bin/deploy
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ source ~/.bashrc
source ~/.bash_profile
cd /home/rails
git pull
bundle install
rake db:migrate RAILS_ENV=production
export NODE_OPTIONS=--openssl-legacy-provider
yarn install
Expand Down
8 changes: 4 additions & 4 deletions config/server/unicorn
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ CONFIG_RB=/home/unicorn/unicorn.conf
PID=/home/unicorn/pids/unicorn.pid
UNICORN_OPTS="-D -c $CONFIG_RB -E production"

PATH=/usr/local/rvm/rubies/ruby-3.2.2/bin:/usr/local/rvm/gems/ruby-3.2.2/bin:/home/unicorn/.rvm/bin:/usr/local/sbin:/usr/bin:/bin:/sbin:$
export GEM_HOME=/usr/local/rvm/gems/ruby-3.2.2
export GEM_PATH=/usr/local/rvm/gems/ruby-3.2.2:/usr/local/rvm/gems/ruby-3.2.2:/usr/local/rvm/rubies/ruby-3.2.2/lib/ruby/gems/3.2.2
DAEMON=/usr/local/rvm/gems/ruby-3.2.2/bin/unicorn
PATH=/usr/local/rvm/rubies/ruby-3.3.0/bin:/usr/local/rvm/gems/ruby-3.3.0/bin:/home/unicorn/.rvm/bin:/usr/local/sbin:/usr/bin:/bin:/sbin:$
export GEM_HOME=/usr/local/rvm/gems/ruby-3.3.0
export GEM_PATH=/usr/local/rvm/gems/ruby-3.3.0:/usr/local/rvm/gems/ruby-3.3.0:/usr/local/rvm/rubies/ruby-3.3.0/lib/ruby/gems/3.3.0
DAEMON=/usr/local/rvm/gems/ruby-3.3.0/bin/unicorn

0 comments on commit eb5402a

Please sign in to comment.