Instead of passing it as an option to the server. This also fixes the iodine versions, as these were using development instead of production.
@@ -13,6 +13,7 @@ WORKDIR /sinatra-sequel
ENV BUNDLE_WITH=postgresql:iodine
RUN bundle install --jobs=4 --gemfile=/sinatra-sequel/Gemfile
+ENV APP_ENV=production
ENV DBTYPE=postgresql
EXPOSE 8080
@@ -14,8 +14,9 @@ ENV BUNDLE_WITH=postgresql:puma
ENV WEB_CONCURRENCY=auto
-CMD bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080 -e production
+CMD bundle exec puma -C config/mri_puma.rb -b tcp://0.0.0.0:8080
@@ -14,8 +14,9 @@ ENV BUNDLE_WITH=mysql:puma
ENV DBTYPE=mysql
@@ -13,6 +13,7 @@ WORKDIR /sinatra
RUN bundle install --jobs=4 --gemfile=/sinatra/Gemfile
@@ -13,9 +13,10 @@ WORKDIR /sinatra
ENV BUNDLE_WITH=mysql:puma