visfleet-deprec 2.1.4.1 → 2.1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG
CHANGED
@@ -1,7 +1,14 @@
|
|
1
1
|
# deprec changelog
|
2
2
|
|
3
|
-
= 2.1.4.
|
3
|
+
= 2.1.4.2 (Oct 22, 2009)
|
4
4
|
|
5
|
+
* Apache default site can be removed with the setting apache_single_site,true
|
6
|
+
* Postgres user can be priveleged to create db's with setting allow_create_db,true
|
7
|
+
which is the current default also.
|
8
|
+
|
9
|
+
= 2.1.4.1 (Oct 10, 2009)
|
10
|
+
|
11
|
+
* Download ruby using http, which can be squid proxied
|
5
12
|
* Now a Visfleet version
|
6
13
|
* Added 'maintenance' support
|
7
14
|
* More suitable postgress configs
|
@@ -3,6 +3,8 @@
|
|
3
3
|
Capistrano::Configuration.instance(:must_exist).load do
|
4
4
|
namespace :deprec do
|
5
5
|
namespace :postgresql do
|
6
|
+
|
7
|
+
set :allow_create_db, true
|
6
8
|
|
7
9
|
# Installation
|
8
10
|
desc "Install postgresql"
|
@@ -75,7 +77,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
75
77
|
|
76
78
|
desc "Create a PostgreSQL user"
|
77
79
|
task :create_user, :roles => :db do
|
78
|
-
cmd = "su - postgres -c \'createuser -P -D -A -E #{db_user}\'"
|
80
|
+
cmd = "su - postgres -c \'createuser -P #{(allow_create_db) ? "-d" : "-D" } -A -E #{db_user}\'"
|
79
81
|
sudo cmd do |channel, stream, data|
|
80
82
|
if data =~ /^Enter password for new/
|
81
83
|
channel.send_data "#{db_password}\n"
|
@@ -4,6 +4,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
4
4
|
namespace :apache do
|
5
5
|
|
6
6
|
set :apache_user, 'www-data'
|
7
|
+
set :apache_single_app, false
|
7
8
|
set :apache_vhost_dir, '/etc/apache2/sites-available'
|
8
9
|
set :apache_ssl_enabled, false
|
9
10
|
set :apache_ssl_ip, nil
|
@@ -16,6 +17,7 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
16
17
|
task :install do
|
17
18
|
install_deps
|
18
19
|
enable_modules
|
20
|
+
remove_default_site if apache_single_app
|
19
21
|
reload
|
20
22
|
end
|
21
23
|
|
@@ -138,6 +140,10 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
138
140
|
# not yet implemented
|
139
141
|
end
|
140
142
|
|
143
|
+
task :remove_default_site, :roles => :web do
|
144
|
+
sudo "a2dissite default"
|
145
|
+
end
|
146
|
+
|
141
147
|
end
|
142
148
|
end
|
143
149
|
end
|
@@ -5,13 +5,13 @@
|
|
5
5
|
# Uncomment and change the ".example.com" to allow
|
6
6
|
# access from other hosts.
|
7
7
|
#
|
8
|
-
ExtendedStatus
|
9
|
-
|
10
|
-
SetHandler server-status
|
11
|
-
Order deny,allow
|
12
|
-
Deny from all
|
13
|
-
Allow from localhost ip6-localhost
|
14
|
-
|
15
|
-
|
8
|
+
ExtendedStatus Off
|
9
|
+
#<Location /server-status>
|
10
|
+
# SetHandler server-status
|
11
|
+
# Order deny,allow
|
12
|
+
# Deny from all
|
13
|
+
# Allow from localhost ip6-localhost
|
14
|
+
## Allow from .example.com
|
15
|
+
#</Location>
|
16
16
|
|
17
|
-
</IfModule>
|
17
|
+
</IfModule>
|
@@ -1,25 +1,13 @@
|
|
1
1
|
# Don't cause the server to break if Passenger module not loaded
|
2
2
|
<IfModule passenger_module>
|
3
3
|
<VirtualHost *:80>
|
4
|
-
ServerName <%= domain %>
|
5
|
-
<%- 4.times do |counter| -%>
|
6
|
-
ServerAlias <%= domain.sub(/.*?\./, "assets#{counter}.") %>
|
7
|
-
<%- end %>
|
8
4
|
DocumentRoot "<%= passenger_document_root %>"
|
9
5
|
CustomLog <%= apache_log_dir %>/<%= application %>-access.log combined
|
10
6
|
ErrorLog <%= apache_log_dir %>/<%= application %>-error.log
|
11
7
|
|
12
8
|
RailsEnv <%= rails_env %>
|
13
9
|
RailsAllowModRewrite <%= passenger_rails_allow_mod_rewrite %>
|
14
|
-
|
15
|
-
<% if passenger_use_mod_rewrite_for_disable %>
|
16
|
-
# Check for maintenance file and redirect all requests
|
17
|
-
RewriteEngine On
|
18
|
-
RewriteCond %{REQUEST_URI} !\.(css|jpg|png|gif)$
|
19
|
-
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
|
20
|
-
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
|
21
|
-
RewriteRule ^.*$ /system/maintenance.html [L]
|
22
|
-
<% end %>
|
10
|
+
|
23
11
|
<Directory "<%= passenger_document_root %>">
|
24
12
|
Order allow,deny
|
25
13
|
Allow from all
|
@@ -27,3 +15,4 @@
|
|
27
15
|
</VirtualHost>
|
28
16
|
</IfModule>
|
29
17
|
|
18
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: visfleet-deprec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.4.
|
4
|
+
version: 2.1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Bailey
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-10-
|
13
|
+
date: 2009-10-27 00:00:00 +13:00
|
14
14
|
default_executable: depify
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|