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 1919 ruby-version : .ruby-version
2020 bundler-cache : true
2121
22- - name : Scan for security vulnerabilities in Ruby dependencies
22+ - name : Scan for common Rails security vulnerabilities using static analysis
2323 run : bin/brakeman --no-pager
2424
2525 scan_js :
Original file line number Diff line number Diff line change 44# docker build -t my-app .
55# docker run -d -p 80:80 -p 443:443 --name my-app -e RAILS_MASTER_KEY=<value from config/master.key> my-app
66
7- # For a containerized dev environment, see Dev Containers: https://guides.rubyonrails.org/getting_started_with_devcontainer.html
8-
97# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
108ARG RUBY_VERSION=your-ruby-version
119FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base
Original file line number Diff line number Diff line change 11source "https://rubygems.org"
22
33# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
4- gem "rails" , "~> 7.2.0.rc1 "
4+ gem "rails" , "~> 7.2.0"
55# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
66gem "sprockets-rails"
77# Use sqlite3 as the database for Active Record
Original file line number Diff line number Diff line change 2323threads_count = ENV . fetch ( "RAILS_MAX_THREADS" , 3 )
2424threads threads_count , threads_count
2525
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-
4726# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
4827port ENV . fetch ( "PORT" , 3000 )
4928
You can’t perform that action at this time.
0 commit comments