Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1880 from SUSE/make-containerized-deployment-more…
Browse files Browse the repository at this point in the history
…-configurable

Make containerized deployment more configurable
  • Loading branch information
mssola authored Jul 26, 2018
2 parents 8c9b4f8 + 4b57ad6 commit e886d51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ default: &default
<% if ENV["PORTUS_DB_TIMEOUT"] %>
timeout: <%= ENV['PORTUS_DB_TIMEOUT'] %>
<% end %>
<% if ENV['PORTUS_DB_SOCKET'] %>
socket: <%= ENV['PORTUS_DB_SOCKET'] %>
<% end %>

<%= Rails.env.downcase %>:
<<: *default
Expand Down
2 changes: 1 addition & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# purposes inside of a container.
# 3. UNIX socket. This is the default and it's good for development purposes if
# you are not using a container setup.
if ENV["PORTUS_PUMA_HOST"]
if ENV["PORTUS_PUMA_HOST"] && ENV["PORTUS_PUMA_USE_UNIX_SOCKET"] != "true"
if ENV["PORTUS_PUMA_TLS_KEY"]
host, port = ENV["PORTUS_PUMA_HOST"].split(":")
port ||= "3000"
Expand Down

0 comments on commit e886d51

Please sign in to comment.