It is a POC for a Rails Web App in a Single File.
Rails
RAILS_ENV, default:developmentSECRET_KEY_BASE, it is required in production environment.
You can use SecureRandom.hex(64) to generate one, for example:
ruby -r "securerandom" -e "puts SecureRandom.hex(64)"Puma(Optional)
RAILS_MAX_THREADS, default:5RAILS_MIN_THREADS, default:5WEB_CONCURRENCY, default:Concurrent.physical_processor_countPORT, default:3000PIDFILE, default:tmp/server.pid
You can also use the .env file to define environment variables.
Makefile
makeRuby
ruby app.rbtouch tmp/restart.txtRun test
k6 run k6.js