README.md in prun-ops-0.3.1 vs README.md in prun-ops-0.3.2
- old
+ new
@@ -47,10 +47,32 @@
require 'capistrano/prun-ops'
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
Dir.glob('lib/capistrano/tasks/*.cap').each { |r| import r }
```
+In order to configure RVM and PUMA you have here the params:
+
+```ruby
+set :rvm_ruby_version, "ruby-3.2.2"
+set :rvm_custom_path, "/usr/share/rvm"
+
+
+#PUMA:
+# Run 'cap production puma:systemd:config' to setup teh linux service
+
+# set :puma_threads, [4, 16]
+# set :puma_workers, 0
+set :puma_service_unit_type, "notify"
+set :puma_access_log, "#{release_path}/log/puma.access.log"
+set :puma_error_log, "#{release_path}/log/puma.error.log"
+set :puma_bind, "tcp://0.0.0.0:3000"
+# set :puma_conf, "#{shared_path}/puma.rb"
+# set :puma_state, "#{shared_path}/tmp/pids/puma.state"
+# set :puma_pid, "#{shared_path}/tmp/pids/puma.pid"
+# set :puma_preload_app, true
+```
+
Notice that you are adding all prun-ops tasks with the line `require 'capistrano/prun-ops'`
Your config/deploy/production.rb:
```
@@ -80,10 +102,10 @@
- `cap [stg] postgres:[start|stop|restart]` start/stop postgres
- `cap [stg] nginx:install` install and configure nginx
- `cap [stg] nginx:[start|stop|restart]` start/stop nginx
- `cap [stg] nodejs:install` install node
- `cap [stg] redis:install` install redis server
-- `cap [stg] app:prepare`(DEPRECATED) create init scripts
+- `cap [stg] puma:install` install puma server
- `cap [stg] app:db_prepare`(DEPRECATED) database first load
- `cap [stg] nginx:cert` create SSL certificates with [Let's Encrypt](https://letsencrypt.org/) and confiture nginx
- `cap [stg] nginx:ssl`(DEPRECATED) configure nginx with SSL certificates
Considerations: