Skip to content

Commit

Permalink
Update Render & Fly configs
Browse files Browse the repository at this point in the history
  • Loading branch information
krschacht committed May 5, 2024
1 parent 0f57129 commit 5181ab3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
11 changes: 3 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,12 @@ FROM ruby:${RUBY_VERSION}-alpine AS render-production

RUN apk add --no-cache git build-base postgresql-dev curl-dev gcompat tzdata vips-dev imagemagick

ENV BUNDLE_CACHE=/tmp/bundle \
BUNDLE_JOBS=2 \
PORT=3000

WORKDIR /rails
COPY Gemfile Gemfile.lock .ruby-version ./

RUN --mount=type=cache,id=gems,target=/tmp/bundle \
bundle install

ENV BUNDLE_DEPLOYMENT=1 \
ENV BUNDLE_CACHE=/tmp/bundle \
BUNDLE_JOBS=2 \
BUNDLE_DEPLOYMENT=1 \
BUNDLE_WITHOUT=development \
RAILS_ENV=production \
PORT=8080
Expand Down
1 change: 0 additions & 1 deletion config/dockerfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ options:
fly_launch_runtime: rails
postgresql: true
prepare: false
redis: true
yjit: true
4 changes: 3 additions & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ console_command = '/rails/bin/rails console'

[processes]
app = './bin/rails server'
worker = 'bundle exec rake solid_queue:start'

[env]
RUN_SOLID_QUEUE_IN_PUMA = 'true'

[http_service]
internal_port = 3000
Expand Down

0 comments on commit 5181ab3

Please sign in to comment.