Skip to content

Commit 94f4792

Browse files
committed
fix: build
1 parent c24a8a4 commit 94f4792

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1454
-574
lines changed

Diff for: .dockerignore

+12-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
# Ignore git directory.
44
/.git/
5+
/.gitignore
56

67
# Ignore bundler config.
78
/.bundle
89

9-
# Ignore all environment files (except templates).
10+
# Ignore all environment files.
1011
/.env*
11-
!/.env*.erb
1212

1313
# Ignore all default key files.
1414
/config/master.key
@@ -35,3 +35,13 @@
3535
/app/assets/builds/*
3636
!/app/assets/builds/.keep
3737
/public/assets
38+
39+
# Ignore CI service files.
40+
/.github
41+
42+
# Ignore development files
43+
/.devcontainer
44+
45+
# Ignore Docker-related files
46+
/.dockerignore
47+
/Dockerfile*

Diff for: .github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Test if service is reachable
1818
run: |
1919
sleep 30
20-
curl -vsfL --retry 10 --retry-connrefused http://localhost:8000/
20+
curl -v --retry 10 --retry-connrefused http://localhost:8000/
2121
2222
- name: Report error to Sentry
2323
if: failure()

Diff for: .gitignore

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
22
#
3-
# If you find yourself ignoring temporary files generated by your text editor
4-
# or operating system, you probably want to add a global ignore instead:
5-
# git config --global core.excludesfile '~/.gitignore_global'
3+
# Temporary files generated by your text editor or operating system
4+
# belong in git's global ignore instead:
5+
# `$XDG_CONFIG_HOME/git/ignore` or `~/.config/git/ignore`
66

77
# Ignore bundler config.
88
/.bundle
99

10-
# Ignore all environment files (except templates).
10+
# Ignore all environment files.
1111
/.env*
12-
!/.env*.erb
1312

1413
# Ignore all logfiles and tempfiles.
1514
/log/*

Diff for: .rubocop.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Omakase Ruby styling for Rails
2+
inherit_gem: { rubocop-rails-omakase: rubocop.yml }
3+
4+
# Overwrite or add rules to create your own house style
5+
#
6+
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
7+
# Layout/SpaceInsideArrayLiteralBrackets:
8+
# Enabled: false

Diff for: Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ WORKDIR /rails
1515

1616
# Install packages needed to build gems
1717
RUN apt-get update -qq && \
18-
apt-get install --no-install-recommends -y build-essential git libvips pkg-config
18+
apt-get install --no-install-recommends -y build-essential git libvips pkg-config libyaml-dev
1919

2020
# Install application gems
2121
COPY Gemfile Gemfile.lock ./

Diff for: Gemfile

+22-26
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,59 @@
11
source "https://rubygems.org"
22

3-
ruby "3.3.6"
4-
53
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
6-
gem "rails", "~> 8", ">= 8"
7-
8-
# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
9-
gem "sprockets-rails"
10-
4+
gem "rails", "~> 8.0.1"
5+
# The modern asset pipeline for Rails [https://github.com/rails/propshaft]
6+
gem "propshaft"
117
# Use sqlite3 as the database for Active Record
12-
gem "sqlite3", "~> 1.4"
13-
8+
gem "sqlite3", ">= 2.1"
149
# Use the Puma web server [https://github.com/puma/puma]
1510
gem "puma", ">= 5.0"
16-
1711
# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
1812
gem "importmap-rails"
19-
2013
# Hotwire's SPA-like page accelerator [https://turbo.hotwired.dev]
2114
gem "turbo-rails"
22-
2315
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
2416
gem "stimulus-rails"
25-
2617
# Build JSON APIs with ease [https://github.com/rails/jbuilder]
2718
gem "jbuilder"
2819

29-
# Use Redis adapter to run Action Cable in production
30-
# gem "redis", ">= 4.0.1"
31-
32-
# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
33-
# gem "kredis"
34-
3520
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
3621
# gem "bcrypt", "~> 3.1.7"
3722

3823
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
3924
gem "tzinfo-data", platforms: %i[ windows jruby ]
4025

26+
# Use the database-backed adapters for Rails.cache, Active Job, and Action Cable
27+
gem "solid_cache"
28+
gem "solid_queue"
29+
gem "solid_cable"
30+
4131
# Reduces boot times through caching; required in config/boot.rb
4232
gem "bootsnap", require: false
4333

34+
# Deploy this application anywhere as a Docker container [https://kamal-deploy.org]
35+
gem "kamal", require: false
36+
37+
# Add HTTP asset caching/compression and X-Sendfile acceleration to Puma [https://github.com/basecamp/thruster/]
38+
gem "thruster", require: false
39+
4440
# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
4541
# gem "image_processing", "~> 1.2"
4642

4743
group :development, :test do
4844
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
49-
gem "debug", platforms: %i[ mri windows ]
45+
gem "debug", platforms: %i[ mri windows ], require: "debug/prelude"
46+
47+
# Static analysis for security vulnerabilities [https://brakemanscanner.org/]
48+
gem "brakeman", require: false
49+
50+
# Omakase Ruby styling [https://github.com/rails/rubocop-rails-omakase/]
51+
gem "rubocop-rails-omakase", require: false
5052
end
5153

5254
group :development do
5355
# Use console on exceptions pages [https://github.com/rails/web-console]
5456
gem "web-console"
55-
56-
# Add speed badges [https://github.com/MiniProfiler/rack-mini-profiler]
57-
# gem "rack-mini-profiler"
58-
59-
# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
60-
# gem "spring"
6157
end
6258

6359
group :test do

0 commit comments

Comments
 (0)