Skip to content

Commit

Permalink
Merge branch 'optional-environment-file'
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Conover + Chris Heisterkamp committed Apr 5, 2012
2 parents 2530bc6 + d49aa04 commit f3716f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jetty_files/jetty-init.erb
Expand Up @@ -14,6 +14,10 @@ JETTY_LOGS=$WEB_ROOT/log
# Avoid unnecessary su call if we're already the app user
test `whoami` != <%=@settings.app_user%> && JETTY_USER=<%=@settings.app_user%>

<% if @settings.environment %>
source <%=@settings.environment%>
<% end %>

# Startup script for jetty under *nix systems (it works under NT/cygwin too).

# To get the service to restart correctly on reboot, uncomment below (3 lines):
Expand Down
1 change: 1 addition & 0 deletions lib/jetpack/settings.rb
Expand Up @@ -24,6 +24,7 @@ def initialize(project_dir, user_defined_options)
contents["max_concurrent_connections"] = user_defined_options["max_concurrent_connections"] || 20
contents["ruby_version"] = user_defined_options["ruby_version"] || "1.8"
contents["app_type"] = user_defined_options["app_type"] || "rails"
contents["environment"] = user_defined_options["environment"] || nil

@keys = contents.keys.sort

Expand Down

0 comments on commit f3716f9

Please sign in to comment.