web_server_config_generator 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README +0 -0
- data/bin/web_server_setup +7 -3
- metadata +2 -2
data/README
CHANGED
Binary file
|
data/bin/web_server_setup
CHANGED
@@ -312,7 +312,11 @@ module WebServerSetup
|
|
312
312
|
server_name_env_project_map[server_name][:projects] << p
|
313
313
|
end
|
314
314
|
end
|
315
|
-
server_name_env_project_map = server_name_env_project_map.select
|
315
|
+
server_name_env_project_map = server_name_env_project_map.select do |server_name, env_and_projects|
|
316
|
+
# more than one project with the same server_name
|
317
|
+
# don't count projects that evaluate to the same path
|
318
|
+
env_and_projects[:projects].map { |p| p.realpath }.uniq.size > 1
|
319
|
+
end
|
316
320
|
@sub_uri_projects = server_name_env_project_map.map do |server_name, env_and_projects|
|
317
321
|
WebServerConfigGenerator::SubUriProject.new(server_name, env_and_projects, self)
|
318
322
|
end
|
@@ -410,8 +414,8 @@ module WebServerSetup
|
|
410
414
|
Dir[File.join(projects_dir, "*", ".webconfig.yml")],
|
411
415
|
Dir[File.join(projects_dir, "*", "*", ".webconfig.yml")],
|
412
416
|
Dir[File.join(projects_dir, "*", "*", "*", ".webconfig.yml")],
|
413
|
-
].flatten.each do |
|
414
|
-
@app_projects << WebServerConfigGenerator::ProjectDirectory.new(
|
417
|
+
].flatten.map { |p| Pathname.new(p).realpath.dirname }.uniq.each do |path|
|
418
|
+
@app_projects << WebServerConfigGenerator::ProjectDirectory.new(path, self)
|
415
419
|
end
|
416
420
|
end
|
417
421
|
|