Skip to content
This repository has been archived by the owner on Jul 26, 2020. It is now read-only.

Commit

Permalink
Adding osenv hash to set os environment vars for gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Tamsen committed Oct 21, 2014
1 parent fcc91ae commit 35f493f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/gunicorn.pp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
$owner = 'www-data',
$group = 'www-data',
$appmodule = 'app:app',
$osenv = false,
$template = 'python/gunicorn.erb',
) {

Expand Down
3 changes: 3 additions & 0 deletions templates/gunicorn.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ CONFIG = {
<% end -%>
<% if @virtualenv -%>
'environment': {
<% if @osenv -%><% @osenv.sort.each do |key, value| -%>
'<%= key %>': '<%= value %>',
<% end -%><% end -%>
<% if @environment -%>
'ENVIRONMENT': '<%= @environment %>',
<% end -%>
Expand Down

0 comments on commit 35f493f

Please sign in to comment.