Introduce thruster

This commit is contained in:
Petko Bordjukov 2024-10-01 00:46:23 +03:00
parent 8cd4a4856d
commit 1018b93b11
4 changed files with 11 additions and 2 deletions

View File

@ -58,5 +58,5 @@ USER rails:rails
ENTRYPOINT ["/rails/bin/docker-entrypoint"] ENTRYPOINT ["/rails/bin/docker-entrypoint"]
# Start the server by default, this can be overwritten at runtime # Start the server by default, this can be overwritten at runtime
EXPOSE 3000 EXPOSE 80
CMD ["./bin/rails", "server", "--early-hints"] CMD ["./bin/thrust", "./bin/rails", "server", "--early-hints"]

View File

@ -88,3 +88,5 @@ group :test do
gem "database_cleaner" gem "database_cleaner"
gem "factory_bot_rails" gem "factory_bot_rails"
end end
gem "thruster", "~> 0.1.8"

View File

@ -491,6 +491,7 @@ GEM
terminal-table (3.0.2) terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3) unicode-display_width (>= 1.1.1, < 3)
thor (1.3.0) thor (1.3.0)
thruster (0.1.8)
tilt (2.3.0) tilt (2.3.0)
timeout (0.4.1) timeout (0.4.1)
tzinfo (2.0.6) tzinfo (2.0.6)
@ -568,6 +569,7 @@ DEPENDENCIES
sprockets sprockets
sqlite3 sqlite3
standard standard
thruster (~> 0.1.8)
uglifier uglifier
yaml_db yaml_db

5
bin/thrust Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env ruby
require "rubygems"
require "bundler/setup"
load Gem.bin_path("thruster", "thrust")