Skip to content

timfanda35/single-file-rails-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Single File Rails App

It is a POC for a Rails Web App in a Single File.

Environment Variables

Rails

  • RAILS_ENV, default: development
  • SECRET_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: 5
  • RAILS_MIN_THREADS, default: 5
  • WEB_CONCURRENCY, default: Concurrent.physical_processor_count
  • PORT, default: 3000
  • PIDFILE, default: tmp/server.pid

You can also use the .env file to define environment variables.

Start Application

Makefile

make

Ruby

ruby app.rb

Restart Application

touch tmp/restart.txt

k6 test

Install k6

Run test

k6 run k6.js

About

It is a POC for a Rails Web App in a Single File.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages