lib/orats/templates/includes/new/rails/config/puma.rb in orats-0.8.0 vs lib/orats/templates/includes/new/rails/config/puma.rb in orats-0.8.1

- old
+ new

@@ -1,18 +1,12 @@ environment ENV['RAILS_ENV'] threads ENV['PUMA_THREADS_MIN'].to_i, ENV['PUMA_THREADS_MAX'].to_i workers ENV['PUMA_WORKERS'].to_i -pidfile "#{ENV['PROJECT_PATH']}/tmp/puma.pid" +pidfile "tmp/puma.pid" -if ENV['RAILS_ENV'] == 'production' - bind "unix://#{ENV['PROJECT_PATH']}/tmp/puma.sock" -else - port '3000' -end - # https://github.com/puma/puma/blob/master/examples/config.rb#L125 prune_bundler restart_command 'bundle exec bin/puma' @@ -20,6 +14,6 @@ require 'active_record' config_path = File.expand_path('../database.yml', __FILE__) ActiveRecord::Base.connection.disconnect! rescue ActiveRecord::ConnectionNotEstablished ActiveRecord::Base.establish_connection(ENV['DATABASE_URL'] || YAML.load_file(config_path)[ENV['RAILS_ENV']]) -end \ No newline at end of file +end