From 691ed8e7e5cf8110d7b632cd10f197a1c3707e01 Mon Sep 17 00:00:00 2001 From: polo Date: Mon, 25 Nov 2019 22:48:03 +0000 Subject: [PATCH] prod test --- config/environments/production.rb | 4 ++-- config/puma.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index fac2f42..8326a60 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -19,14 +19,14 @@ Rails.application.configure do # Disable serving static files from the `/public` folder by default since # Apache or NGINX already handles this. - config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + config.public_file_server.enabled = true #ENV['RAILS_SERVE_STATIC_FILES'].present? # Compress JavaScripts and CSS. config.assets.js_compressor = :uglifier # config.assets.css_compressor = :sass # Do not fallback to assets pipeline if a precompiled asset is missed. - config.assets.compile = false + config.assets.compile =true # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb diff --git a/config/puma.rb b/config/puma.rb index a5eccf8..ada8926 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -9,11 +9,11 @@ threads threads_count, threads_count # Specifies the `port` that Puma will listen on to receive requests; default is 3000. # -port ENV.fetch("PORT") { 3000 } +port ENV.fetch("PORT") { 3333 } # Specifies the `environment` that Puma will run in. # -environment ENV.fetch("RAILS_ENV") { "development" } +environment ENV.fetch("RAILS_ENV") { "production" } # Specifies the number of `workers` to boot in clustered mode. # Workers are forked webserver processes. If using threads and workers together