It's a Rails with Hotwire application designed to run on a Unix-based server or container.
- Ruby (as specified in .ruby-version)
- SQLite 3.8 or later
- Run
bundle installto install runtime dependencies - If wanting to run in production mode:
- Be sure an environment variable called
SECRET_KEY_BASEis set for cookie signing - Set the environment variable
RAILS_ENVto "production" - Run
rake asset:precompileto compile CSS
- Be sure an environment variable called
- Run
rake db:create db:schema:loadto create the database- If updating, run
rake db:migrateto catch the database structure up to date.
- If updating, run
- Run
rails sto start CSS build watching (dev mode puma plugin) and the web server (default port 3000)
The puma configuration file is set up through a plugin to pull new entries for all feeds every 20 minutes (relative to the time the server was started).
Alternatively, run rake entries:fetch to pull any new entries from all feeds. This would be commonly done through a cron job.
Run rake entries:clean periodically to delete older entries.