Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsmfm committed Feb 4, 2019
1 parent 90c827c commit ec2833f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/controllers/application_controller.rb
@@ -1,2 +1,5 @@
class ApplicationController < ActionController::Base
if ENV['BASIC_AUTH_USERNAME'] && ENV['BASIC_AUTH_PASSWORD']
http_basic_authenticate_with name: ENV['BASIC_AUTH_USERNAME'], password: ENV['BASIC_AUTH_PASSWORD']
end
end
2 changes: 1 addition & 1 deletion config/environments/production.rb
Expand Up @@ -44,7 +44,7 @@
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]

# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
# config.force_ssl = true
config.force_ssl = true

# Use the lowest log level to ensure availability of diagnostic information
# when problems arise.
Expand Down
4 changes: 4 additions & 0 deletions config/puma.rb
Expand Up @@ -33,3 +33,7 @@

# Allow puma to be restarted by `rails restart` command.
plugin :tmp_restart

on_worker_boot do
ActiveRecord::Base.establish_connection
end
5 changes: 5 additions & 0 deletions heroku.yml
@@ -0,0 +1,5 @@
build:
docker:
web: Dockerfile
run:
web: bundle exec puma -C config/puma.rb

0 comments on commit ec2833f

Please sign in to comment.