Skip to content

Commit

Permalink
Passenger app extension
Browse files Browse the repository at this point in the history
  • Loading branch information
felipemathies committed Nov 14, 2008
1 parent c8e6437 commit 09dfc88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PassengerApplication.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class << self
include SharedPassengerBehaviour

def existingApplications
Dir.glob(File.join(PassengerPaneConfig::PASSENGER_APPS_DIR, '*.vhost.conf')).map do |app|
Dir.glob(File.join(PassengerPaneConfig::PASSENGER_APPS_DIR, "*.#{PassengerPaneConfig::PASSENGER_APPS_EXTENSION}")).map do |app|
PassengerApplication.alloc.initWithFile(app)
end
end
Expand Down Expand Up @@ -141,7 +141,7 @@ def save_config!
end

def config_path
File.join(PassengerPaneConfig::PASSENGER_APPS_DIR, "#{@host}.vhost.conf")
File.join(PassengerPaneConfig::PASSENGER_APPS_DIR, "#{@host}.#{PassengerPaneConfig::PASSENGER_APPS_EXTENSION}")
end

def rbSetValue_forKey(value, key)
Expand Down
1 change: 1 addition & 0 deletions passenger_pane_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ module PassengerPaneConfig
APACHE_DIR = "/private/etc/apache2"
HTTPD_CONF = File.join(APACHE_DIR, 'httpd.conf')
PASSENGER_APPS_DIR = File.join(APACHE_DIR, 'passenger_pane_vhosts')
PASSENGER_APPS_EXTENSION = ".vhost.conf"
end
1 change: 1 addition & 0 deletions passenger_pane_config.rb.ports
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ module PassengerPaneConfig
HTTPD_CONF = File.join(APACHE_DIR, 'conf', 'httpd.conf')
APACHE_RESTART_COMMAND = "#{File.join(APACHE_DIR, "bin", "apachectl")} restart"
PASSENGER_APPS_DIR = File.join(APACHE_DIR, 'conf', 'passenger_pane_vhosts')
PASSENGER_APPS_EXTENSION = ".vhost.conf"
end

0 comments on commit 09dfc88

Please sign in to comment.