the-teacher / rails7-startkit

Launch Rails with 1 shell command!
https://github.com/the-teacher/rails7-startkit
MIT License
577 stars 80 forks source link

Add Production Mode #27

Closed the-teacher closed 1 year ago

the-teacher commented 1 year ago

Adding a way to run Production mode

It this PR I add gem and provide an example how it can be used. Also tests are provided.

How it works

RAILS_ENV=production bin/setup

RAILS_ENV=production bin/exec start
RAILS_ENV=production bin/exec stop

RAILS_ENV=production bin/exec start_all
RAILS_ENV=production bin/exec stop_all