Generar URLs incluyendo el host
Son necesarias para que Telegram pueda configurar los webhooks también.
This commit is contained in:
parent
e51b4607e9
commit
5b46d97070
2 changed files with 5 additions and 1 deletions
|
@ -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'
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue