Make release directory used by Puma configurable via env variable.
This allows running FeedBunch in a different directory than the default.
View ArticleLocation where puma writes logs is now configurable via env variables
The default if the STDOUT_FILE, STDERR_FILE variables are not set is the same as before.
View ArticleThe FORCE_SSL env variable can make the app secure.
The app is secure by default, if FORCE_SSL is not set. This toggles the force_ssl rails flag, which among other things makes TLS mandatory, marks cookies as secure-only and enables HSTS. Generally...
View ArticleUse FORCE_SECURE env var instead of FORCE_SSL to force secure behavior
It not only forces the use of SSL but also HSTS and secure cookies.
View ArticleCorrectly use the FORCE_SECURE env variable
Env vars are strings, not booleans. Convert to boolean before actually using the value in code.
View ArticleControl log level in production with the FEEDBUNCH_LOG_LEVEL env var
It takes the value "warn" by default.
View ArticleMake SMTP port and authentication method parametrizable.
These are used to connect to an SMTP server to when sending emails. They can be set via values in secrets.yml file.
View ArticleRemoved facebook app ID from secrets.
Sharing entries in facebook has not worked for a long, long while.
View ArticleMake uploads behavior parametrizable via env variables
- UPLOADS_LOCATION: "local" means use a local uploads folder, "s3" means use an AWS S3 bucket. - new secret to configure AWS region to use, in case S3 is used for uploads. - if S3 is used for uploads,...
View ArticleUse a single sidekiq server initialization block
FeedBunch was making two calls to Sidekiq.configure_server : one to initialize the redis connection pool and a second one to create default scheduled jobs. There is a possibility that this was causing...
View ArticleAdded script to create users non-interactively.
It can be invoked with "rails runner" to e.g. populate the initial admin user in a new installation.
View Article
More Pages to Explore .....