Skip to content

Commit

Permalink
NEW: Use thruster to boot application on production
Browse files Browse the repository at this point in the history
closes #1368
  • Loading branch information
gmmcal committed Dec 1, 2024
1 parent aa97727 commit 3685cce
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ ENTRYPOINT ["/rails/bin/docker-entrypoint"]

# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"]
CMD ["bin/thrust", "bundle", "exec", "puma", "-C", "config/puma.rb"]

# Development image
FROM base AS development
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ group :production do
# Use puma as the app server
gem "puma"
gem "rack-cors"
gem "thruster", require: false
end

gem "bcrypt"
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,11 @@ GEM
sprockets (>= 3.0.0)
stringio (3.1.2)
thor (1.3.2)
thruster (0.1.9)
thruster (0.1.9-aarch64-linux)
thruster (0.1.9-arm64-darwin)
thruster (0.1.9-x86_64-darwin)
thruster (0.1.9-x86_64-linux)
timeout (0.4.2)
ttfunk (1.8.0)
bigdecimal (~> 3.1)
Expand Down Expand Up @@ -453,6 +458,7 @@ DEPENDENCIES
solid_cache
solid_queue
sprockets-rails
thruster
turbo-rails

RUBY VERSION
Expand Down
1 change: 0 additions & 1 deletion config/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ proxy:
hosts:
- gustavocunha.dev
- www.gustavocunha.dev
app_port: 3000

registry:
username: gmmcal
Expand Down

0 comments on commit 3685cce

Please sign in to comment.