Skip to content

Commit

Permalink
chore: upgrade for Rails 7 and Node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
ElMassimo committed May 2, 2022
1 parent 58bac64 commit caa3d57
Show file tree
Hide file tree
Showing 16 changed files with 1,226 additions and 281 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ruby:3.0
FROM ruby:3.1.1

# Install nodejs on the default ruby 3 image
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
apt-get install -y nodejs build-essential

WORKDIR /app
Expand Down
17 changes: 5 additions & 12 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '3.0.0'
ruby '3.1.1'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem 'rails', '~> 6.1.3'
gem 'rails', '~> 7.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.4'
# Use Puma as the app server
gem 'puma', '~> 5.0'
# Use SCSS for stylesheets
# gem 'sass-rails', '>= 6'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.7'

# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
Expand All @@ -30,14 +27,10 @@ group :development, :test do
end

group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 4.1.0'
# Display performance information such as SQL time and flame graphs for each request in your browser.
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
gem 'rack-mini-profiler', '~> 2.0'
gem 'listen', '~> 3.3'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'listen', '~> 3.7'
end

group :test do
Expand All @@ -51,4 +44,4 @@ end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem "vite_rails", "~> 2.0"
gem "vite_rails", "~> 3.0"
Loading

0 comments on commit caa3d57

Please sign in to comment.