lib/rconf/configurators/passenger_configurator.rb in rconf-0.6.11 vs lib/rconf/configurators/passenger_configurator.rb in rconf-0.6.13
- old
+ new
@@ -66,11 +66,11 @@
# Set default values for settings
#
# === Return
# true:: Always return true
def set_defaults
- right_site_src_path(Dir.getwd)
+ right_site_src_path(File.expand_path(Dir.getwd))
library_src_path(File.expand_path(File.join(Dir.getwd, '..', 'library'))) if library_src_path.nil?
gem_version(PASSENGER_GEM_VERSION) if gem_version.nil?
install_path(default_install_path) if install_path.nil?
user(ENV['USER']) if user.nil?
true
@@ -210,10 +210,10 @@
server {
ssi on;
listen 8080;
server_name right-site.rightscale.local;
- root /Users/raphael/src/right_site/public;
+ root #{File.join(right_site_src_path, 'public')};
passenger_enabled on;
rails_env development;
# POST and AJAX requests need to proxied directly to the library app
#####################################################################