Notes about things
Some new tools I've come across that I'm finding useful.
I've run a number of projects on Elastic Beanstalk, generally the whole experience is terrible. Still better than
running servers yourself, but so far from Heroku.
All my projects end up with a bunch of
.ebextensions files that try to configure the EB server for the application.
They work sometimes, and almost alway break with platform upgrades, even minor upgrades.
Hosting a [Lucky Framework] application on AWS Lambda using [Apex Up].
[Buildpacks.io] is bringing buildpacks, like Heroku uses, to anyone. Buildpacks are a better way to build [Docker] images, partly due to caching layers, but also helps build reusable build processes. This is a better intro Turn Your Code into Docker Images with Cloud Native Buildpacks.
Using [Coc] with [Neovim] in ZSH and a ruby version manager, like RVM, or [ASDF].
I've been using Rails JSON Serialized Fields for
custom objects stored in Postgresql JSON fields. I found this approach and like it a lot more. It
ActiveModel::Type::Value to create a custom type mapping for ActiveRecord.
We decided to try Kickstarter for the first product of Stubborn Goods. We reached our goal thanks to our friends and family. This is an overview of what we did and some lessons we learned. ## Why Kickstarter? Stubborn Goods makes packs and bags. Since production requires a minimum quantity order to make sense we thought Kickstarter might be a good way to start. Besides, I wanted to experience running a Kickstarter project.
Continuing from the earlier post Rails JSON Serialized Fields, this covers how to validate JSON serialized objects from the parent model.
Route285 is a site of Colorado product companies. I have images of logos & products from those sites, but need to
download and display them locally, in case an image changes later. Also, since eleventy-img supports resizing
and different formats I wanted to get that stuff working too.
I ran into a couple of snags. First ICO isn't supported, that was pretty easy to work around, but I still wanted
a local version of the file. The
useOriginalImage function handles that. Plus it's helpful for errors and SVG files.
Also, since it's an
addNunjucksAsyncShortcode in 11ty, I needed to change my
for blocks to
asyncEach blocks. That took a while
to figure out as it just results in those templates returning nothing.
Sometimes I like storing a set of options for a model as in integer in the DB, but still want a nice interface to use those options in code. This is one approach I've been using.