Skip to content

Commit 67852f7

Browse files
authored
[ruby/roda-sequel] Pass environment as RACK_ENV (#10179)
Instead of passing it as an option to the server.
1 parent b1d7a2b commit 67852f7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

frameworks/Ruby/roda-sequel/roda-sequel-postgres-iodine-mri.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ENV BUNDLE_FORCE_RUBY_PLATFORM=true
1414
RUN bundle config set with 'postgresql iodine'
1515
RUN bundle install --jobs=8
1616

17+
ENV RACK_ENV=production
1718
ENV DBTYPE=postgresql
1819

1920
EXPOSE 8080

frameworks/Ruby/roda-sequel/roda-sequel-postgres.dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ ENV BUNDLE_FORCE_RUBY_PLATFORM=true
1414
RUN bundle config set with 'postgresql puma'
1515
RUN bundle install --jobs=8
1616

17+
ENV RACK_ENV=production
1718
ENV DBTYPE=postgresql
1819

1920
ENV WEB_CONCURRENCY=auto
2021
EXPOSE 8080
2122

22-
CMD bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080 -e production
23+
CMD bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080

frameworks/Ruby/roda-sequel/roda-sequel.dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ ENV BUNDLE_FORCE_RUBY_PLATFORM=true
1515
RUN bundle config set with 'mysql puma'
1616
RUN bundle install --jobs=8
1717

18+
ENV RACK_ENV=production
1819
ENV DBTYPE=mysql
1920

2021
ENV WEB_CONCURRENCY=auto
2122
EXPOSE 8080
2223

23-
CMD bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080 -e production
24+
CMD bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080

0 commit comments

Comments
 (0)