相关疑难解决方法(0)

从应用程序获取消息:无效的选项键:在运行生产模式时出错(raise_on_unfiltered_pa​​rameters =(RuntimeError)错误?

嗨,我正在尝试在生产模式下的docker内部运行rails应用程序。它抛出错误以下。

Message from application: Invalid option key: raise_on_unfiltered_parameters= (RuntimeError)
Run Code Online (Sandbox Code Playgroud)

因此,我的应用程序服务器未启动,并且出现错误页面。

Dockerfile:

FROM docker.aws.com:443/consumertech/ruby-nginx-lua-anti-scrape:latest

# copy app source
RUN mkdir -p /data/app/my-app
RUN mkdir -p /data/app/my-app/log
RUN mkdir -p /data/app/my-app/tmp

RUN touch /data/app/my-app/dockerized
WORKDIR /data/app/my-app

ARG rails_env

ENV BUILD_ENV $rails_env

COPY . /data/app/my-app
RUN gem install bundler

RUN bundle install --with="production development test"
RUN RAILS_ENV=development bundle exec rake assets:precompile


ENV RAILS_ENV $rails_env
ENV NEW_RELIC_KEY "41dfc2f90fb480fbd4d2df35b77fffde68e42c74"

# unicorn
EXPOSE 3000


# need to start both unicorn and nscd
RUN echo "#!/usr/bin/env sh …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails docker ruby-on-rails-5

3
推荐指数
1
解决办法
1399
查看次数

标签 统计

docker ×1

ruby-on-rails ×1

ruby-on-rails-5 ×1