This is the example for rails & capistrano. You have to change some parameter according to application.
- Instance with RVM (Ruby, Rails)
- elasticsearch
- postgresql
cap RAILS_ENV deploy:check
cap RAILS_ENV puma:config
cap RAILS_ENV puma:nginx_config
cap RAILS_ENV deploy:initial
That's it :)