Getting Message from application: Invalid option key: raise_on_unfiltered_parameters= (RuntimeError) error while running production mode?

*爱你&永不变心* 提交于 2019-12-23 19:22:03

问题


Hi I am trying to run the rails app inside a docker in production mode. it is throwing below error.

Message from application: Invalid option key: raise_on_unfiltered_parameters= (RuntimeError)

Because of this my application server is not started and i am getting error page.

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 \n \
service nscd start \n \
unicorn -c ./config/unicorn.rb -E ${RAILS_ENV} -p 3000 \n \
bundle exec passenger start -p 3000 \

" > go.sh


RUN chmod 0755 go.sh

CMD ["./go.sh"]

回答1:


On the config/initializers/new_framework_defaults.rb find a line that includes raise_on_unfiltered_parameters and delete it.



来源:https://stackoverflow.com/questions/46905738/getting-message-from-application-invalid-option-key-raise-on-unfiltered-parame

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!