File tree Expand file tree Collapse file tree 4 files changed +2
-25
lines changed Expand file tree Collapse file tree 4 files changed +2
-25
lines changed Original file line number Diff line number Diff line change 19
19
ruby-version : .ruby-version
20
20
bundler-cache : true
21
21
22
- - name : Scan for security vulnerabilities in Ruby dependencies
22
+ - name : Scan for common Rails security vulnerabilities using static analysis
23
23
run : bin/brakeman --no-pager
24
24
25
25
scan_js :
Original file line number Diff line number Diff line change 4
4
# docker build -t my-app .
5
5
# docker run -d -p 80:80 -p 443:443 --name my-app -e RAILS_MASTER_KEY=<value from config/master.key> my-app
6
6
7
- # For a containerized dev environment, see Dev Containers: https://guides.rubyonrails.org/getting_started_with_devcontainer.html
8
-
9
7
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
10
8
ARG RUBY_VERSION=your-ruby-version
11
9
FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
Original file line number Diff line number Diff line change 1
1
source "https://rubygems.org"
2
2
3
3
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
4
- gem "rails" , "~> 7.2.0.rc1 "
4
+ gem "rails" , "~> 7.2.0"
5
5
# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
6
6
gem "sprockets-rails"
7
7
# Use sqlite3 as the database for Active Record
Original file line number Diff line number Diff line change 23
23
threads_count = ENV . fetch ( "RAILS_MAX_THREADS" , 3 )
24
24
threads threads_count , threads_count
25
25
26
- # Specifies the `environment` that Puma will run in.
27
- rails_env = ENV . fetch ( "RAILS_ENV" , "development" )
28
- environment rails_env
29
-
30
- case rails_env
31
- when "production"
32
- # If you are running more than 1 thread per process, the workers count
33
- # should be equal to the number of processors (CPU cores) in production.
34
- #
35
- # Automatically detect the number of available processors in production.
36
- require "concurrent-ruby"
37
- workers_count = Integer ( ENV . fetch ( "WEB_CONCURRENCY" ) { Concurrent . available_processor_count } )
38
- workers workers_count if workers_count > 1
39
-
40
- preload_app!
41
- when "development"
42
- # Specifies a very generous `worker_timeout` so that the worker
43
- # isn't killed by Puma when suspended by a debugger.
44
- worker_timeout 3600
45
- end
46
-
47
26
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
48
27
port ENV . fetch ( "PORT" , 3000 )
49
28
You can’t perform that action at this time.
0 commit comments