oneblackbear-obbistrano 1.0.22 → 1.0.23

Sign up to get free protection for your applications and to get access to all the features.
@@ -252,12 +252,12 @@ Capistrano::Configuration.instance(:must_exist).load do
252
252
  public_ip = ""
253
253
  run "ifconfig eth0 | grep inet | awk '{print $2}' | sed 's/addr://'" do |_, _, public_ip| end
254
254
  public_ip = public_ip.strip
255
- f = File.open(File.join(File.dirname(__FILE__), 'templates/apache_vhost.erb' ))
256
- contents = f.read
257
- f.close
258
- buffer = ERB.new(contents)
259
- config = buffer.result(binding())
260
255
  roles[:web].servers.each do |webserver|
256
+ f = File.open(File.join(File.dirname(__FILE__), 'templates/apache_vhost.erb' ))
257
+ contents = f.read
258
+ f.close
259
+ buffer = ERB.new(contents)
260
+ config = buffer.result(binding())
261
261
  put config, "/etc/httpd/conf.d/#{webserver}-apache-vhost.conf"
262
262
  end
263
263
  end
@@ -1,14 +1,14 @@
1
1
  <VirtualHost <%=public_ip%>:80>
2
- ServerName <%=domain%>
2
+ ServerName <%=webserver%>
3
3
  <%aliases.each do |aliass|%>
4
4
  ServerAlias <%=aliass%>
5
5
  <%end%>
6
- DocumentRoot /home/<%=application%>/public
6
+ DocumentRoot /home/<%=application%>/<%=deploy_to%>/public
7
7
  DirectoryIndex index.html index.htm index.php
8
8
  AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-javascript text/css
9
9
  SetOutputFilter DEFLATE
10
10
 
11
- <Directory /home/<%=application%>/public>
11
+ <Directory /home/<%=application%>/<%=deploy_to%>/public>
12
12
  Options Indexes IncludesNOEXEC FollowSymLinks
13
13
  allow from all
14
14
  AllowOverride All
data/obbistrano.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{obbistrano}
5
- s.version = "1.0.22"
5
+ s.version = "1.0.23"
6
6
  s.authors = ["Ross Riley", "One Black Bear"]
7
7
  s.date = Time.now
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oneblackbear-obbistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.22
4
+ version: 1.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Riley