diff --git a/Dockerfile b/Dockerfile index f075b65..5781824 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,5 +58,5 @@ USER rails:rails ENTRYPOINT ["/rails/bin/docker-entrypoint"] # Start the server by default, this can be overwritten at runtime -EXPOSE 3000 -CMD ["./bin/rails", "server", "--early-hints"] +EXPOSE 80 +CMD ["./bin/thrust", "./bin/rails", "server", "--early-hints"] diff --git a/Gemfile b/Gemfile index e265b2e..1c236f6 100644 --- a/Gemfile +++ b/Gemfile @@ -88,3 +88,5 @@ group :test do gem "database_cleaner" gem "factory_bot_rails" end + +gem "thruster", "~> 0.1.8" diff --git a/Gemfile.lock b/Gemfile.lock index d2b1047..8098dbb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -491,6 +491,7 @@ GEM terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) thor (1.3.0) + thruster (0.1.8) tilt (2.3.0) timeout (0.4.1) tzinfo (2.0.6) @@ -568,6 +569,7 @@ DEPENDENCIES sprockets sqlite3 standard + thruster (~> 0.1.8) uglifier yaml_db diff --git a/bin/thrust b/bin/thrust new file mode 100755 index 0000000..36bde2d --- /dev/null +++ b/bin/thrust @@ -0,0 +1,5 @@ +#!/usr/bin/env ruby +require "rubygems" +require "bundler/setup" + +load Gem.bin_path("thruster", "thrust")