diff --git a/config/deploy.rb b/config/deploy.rb index cca79d9..16ad184 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -16,7 +16,8 @@ set :default_env, rails_env: 'production', rails_master_key: ENV.fetch('RAILS_MASTER_KEY') { File.read('config/master.key') }, web_concurrency: '1', - ld_preload: '/usr/lib/libjemalloc.so' + ld_preload: '/usr/lib/libjemalloc.so', + api_host: 'api.lumi.partidopirata.com.ar' after 'deploy:published', 'pumx:stop' after 'pumx:stop', 'pumx:start' diff --git a/config/environments/production.rb b/config/environments/production.rb index b83734d..411b77e 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,5 +1,8 @@ # frozen_string_literal: true +Rails.application.routes.default_url_options[:host] = ENV.fetch('API_HOST', 'api.lumi.partidopirata.com.ar') +Rails.application.routes.default_url_options[:protocol] = 'https' + Rails.application.configure do # Settings specified here will take precedence over those in # config/application.rb.