David Kimura PRO
Joined 7/18/2015
Drifting Ruby Owner
David Kimura PRO said almost 6 years ago on Uploading Files with Refile :
  I prefer Active Storage right now as it seems to fit my use cases. I haven’t had any issues with it so far.

David Kimura PRO said almost 6 years ago on Deploying to Heroku :
  I think that it would mainly be the networking aspect in the security groups so that you’re not opening up the PostgreSQL service to the world and also forming the proper DATABASE_URL. I think that those would be the main two points of difference, but definitely something to keep in mind.

David Kimura PRO said almost 6 years ago on Dynamic Role Management :
Yea, I’ve implemented something like this before with that approach

David Kimura PRO said almost 6 years ago on Activity Feed with Public Activity :
  You could have a scheduled background job running which deletes records older than X months old. If this data is important and must be retained, you could look into moving it off to an archive database.

David Kimura PRO said almost 6 years ago on In Depth with Docker Compose :
If anyone is wanting to use an Alpine version of a Ruby image, here's what I'm using. I've included some commented out lines which you can replace the postgresql-dev with the sqlite or mysql (mariadb) depending on the database you're using.

FROM ruby:2.6.6-alpine3.12
LABEL MAINTAINER=dave@k-innovations.net

# sqlite-dev \
# mariadb-dev \
RUN apk add --no-cache --update build-base \
  git \
  postgresql-dev \
  nodejs \
  yarn \
  tzdata \
  && rm -rf /var/cache/apk/*

RUN bundle config --global frozen 1

COPY Gemfile Gemfile.lock ./
RUN gem update --system
RUN gem install bundler
RUN bundle install -j $(nproc)

RUN mkdir -p /app
WORKDIR /app

This helped reduce the base image from 2GB to 1GB.