Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translation missing #13

Open
razvanmitre opened this issue Mar 5, 2023 · 0 comments
Open

translation missing #13

razvanmitre opened this issue Mar 5, 2023 · 0 comments

Comments

@razvanmitre
Copy link

Hello,

This is a great gem btw, really helpful, thank you.

I am having trouble with the datetime translation. I'm getting "translation missing: en.datetime.distance_in_words.less_than_x_minutes ago (2023-03-05 09:49:25 +0000)" message. Any idea what I am missing?

I'm running this in a docker container separate from my rails installation with just a config.ru file:

require 'active_support/time'
require "resque/job_history_server"

if !ENV['RESQUE_WEB_HTTP_BASIC_AUTH_USER'].nil? && !ENV['RESQUE_WEB_HTTP_BASIC_AUTH_USER'].empty?
  ::Resque::Server.use Rack::Auth::Basic do |username, password|
    username == ENV['RESQUE_WEB_HTTP_BASIC_AUTH_USER']
    password == ENV['RESQUE_WEB_HTTP_BASIC_AUTH_PASSWORD']
  end
end

This is my entrypoint for docker:

resque-web -FL -r "redis://${RESQUE_WEB_HOST}:${RESQUE_WEB_PORT}" /config.ru

And the Dockerfile

FROM ruby:2.7-alpine

RUN apk add --no-cache bash ruby-dev zlib-dev build-base && \
  rm -f /var/cache/apk/* && \
  gem install --no-document redis activesupport resque-web resque-job_history rails-i18n && \
  apk del ruby-dev zlib-dev build-base

ADD ./config.ru /config.ru
ADD ./entrypoint.sh /entrypoint.sh

RUN chmod 775 /entrypoint.sh

ENV RESQUE_WEB_HOST 127.0.0.1
ENV RESQUE_WEB_PORT 6379

ENTRYPOINT ["/entrypoint.sh"]

EXPOSE 5678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant