Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions frameworks/rails/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ RUN bundle install --jobs=$(nproc)

COPY . .

EXPOSE 8080
EXPOSE 8080 8081

ENV THRUSTER_TARGET_PORT=8080
ENV THRUSTER_LOG_REQUESTS=false

CMD ["bin/thrust", "bin/rails", "s"]
CMD ["bin/rails", "server"]
1 change: 0 additions & 1 deletion frameworks/rails/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ gem 'puma', '~> 7.2'
gem 'pg', '~> 1.5'
gem 'bootsnap', require: false
gem 'connection_pool'
gem 'thruster', require: false
5 changes: 0 additions & 5 deletions frameworks/rails/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ GEM
securerandom (0.4.1)
stringio (3.2.0)
thor (1.5.0)
thruster (0.1.20-arm64-darwin)
thruster (0.1.20-x86_64-linux)
timeout (0.6.1)
tsort (0.2.0)
tzinfo (2.0.6)
Expand All @@ -212,7 +210,6 @@ DEPENDENCIES
pg (~> 1.5)
puma (~> 7.2)
rails (~> 8.0)
thruster

CHECKSUMS
action_text-trix (2.1.18) sha256=3fdb83f8bff4145d098be283cdd47ac41caf5110bfa6df4695ed7127d7fb3642
Expand Down Expand Up @@ -279,8 +276,6 @@ CHECKSUMS
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
stringio (3.2.0) sha256=c37cb2e58b4ffbd33fe5cd948c05934af997b36e0b6ca6fdf43afa234cf222e1
thor (1.5.0) sha256=e3a9e55fe857e44859ce104a84675ab6e8cd59c650a49106a05f55f136425e73
thruster (0.1.20-arm64-darwin) sha256=630cf8c273f562063b92ea5ccd7a721d7ba6130cc422c823727f4744f6d0770e
thruster (0.1.20-x86_64-linux) sha256=d579f252bf67aee6ba6d957e48f566b72e019d7657ba2f267a5db1e4d91d2479
timeout (0.6.1) sha256=78f57368a7e7bbadec56971f78a3f5ecbcfb59b7fcbb0a3ed6ddc08a5094accb
tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
Expand Down
5 changes: 0 additions & 5 deletions frameworks/rails/bin/thrust

This file was deleted.

5 changes: 4 additions & 1 deletion frameworks/rails/config/puma.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
thread_count = ENV.fetch('RAILS_MAX_THREADS', 4).to_i
threads thread_count, thread_count

port 8080
tls_cert_path = ENV.fetch('TLS_CERT', '/certs/server.crt')
tls_key_path = ENV.fetch('TLS_KEY', '/certs/server.key')
bind "tcp://0.0.0.0:8080"
bind "ssl://0.0.0.0:8081?cert=#{tls_cert_path}&key=#{tls_key_path}"

# Allow all HTTP methods so Rack middleware can return 405 instead of Puma returning 501
supported_http_methods :any
Expand Down
1 change: 1 addition & 0 deletions frameworks/rails/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"limited-conn",
"json",
"json-comp",
"json-tls",
"upload",
"api-4",
"api-16",
Expand Down