Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Suggestion to better support Rails 3 upgrades #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/scripts/config_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ def create_vhost_conf(index)
(" ServerAlias #{app['aliases']}" unless app['aliases'].empty?),
" DocumentRoot \"#{public_dir}\"",
" #{app['app_type'].capitalize}Env #{app['environment']}",
# allow for later upgrade to rails 3 with config.ru file
(" RackEnv #{app['environment']}" if app['app_type']=="rails"),
(app['user_defined_data'] unless app['user_defined_data'].empty?),
"</VirtualHost>"
].compact.join("\n")
Expand Down
1 change: 1 addition & 0 deletions test/config_installer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
ServerAlias manfred-s-blog.local my-blog.local
DocumentRoot "/User/het-manfred/rails code/blog/public"
RailsEnv production
RackEnv production
<Directory \"/User/het-manfred/rails code/blog/public\">
Order allow,deny
Allow from all
Expand Down