pushapp 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pushapp/generators.rb +37 -37
- data/lib/pushapp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e90dc0cb518973fc30250f946a10aab6f202af0
|
4
|
+
data.tar.gz: 2c1b52340bcb0d18d4e26fb4a03f644506b5d1fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4db0093b2a821561af32f723815999b2e403e0551b4b8100953be3ec11c87ee3cf1f0c42291cc584cfccc1ac2de94d6fbbb8f8eb0c7de145451c077a0c3d7744
|
7
|
+
data.tar.gz: 43f0b438bff2c0e076701371b287627c0934a0a26429ce4a770ad90e205e36d7b6b8ef236c6548ddb71d8b1ee9061299d6fb170e6c5d9db138ab09a388c3af79
|
data/lib/pushapp/generators.rb
CHANGED
@@ -75,7 +75,7 @@ module Pushapp
|
|
75
75
|
|
76
76
|
method_option :ruby,
|
77
77
|
type: :string,
|
78
|
-
default: '2.0.0-
|
78
|
+
default: '2.0.0-p195'
|
79
79
|
|
80
80
|
def chef_solo(remote)
|
81
81
|
options[:remote] = remote
|
@@ -130,30 +130,30 @@ module Pushapp
|
|
130
130
|
def postgresql_config
|
131
131
|
{
|
132
132
|
config: {
|
133
|
-
listen_addresses:
|
134
|
-
port:
|
133
|
+
listen_addresses: '*',
|
134
|
+
port: '5432'
|
135
135
|
},
|
136
136
|
pg_hba: [
|
137
137
|
{
|
138
|
-
type:
|
139
|
-
db:
|
140
|
-
user:
|
138
|
+
type: 'local',
|
139
|
+
db: 'postgres',
|
140
|
+
user: 'postgres',
|
141
141
|
addr: nil,
|
142
|
-
method:
|
142
|
+
method: 'trust'
|
143
143
|
},
|
144
144
|
{
|
145
|
-
type:
|
146
|
-
db:
|
147
|
-
user:
|
148
|
-
addr:
|
149
|
-
method:
|
145
|
+
type: 'host',
|
146
|
+
db: 'all',
|
147
|
+
user: 'all',
|
148
|
+
addr: '0.0.0.0/0',
|
149
|
+
method: 'md5'
|
150
150
|
},
|
151
151
|
{
|
152
|
-
type:
|
153
|
-
db:
|
154
|
-
user:
|
155
|
-
addr:
|
156
|
-
method:
|
152
|
+
type: 'host',
|
153
|
+
db: 'all',
|
154
|
+
user: 'all',
|
155
|
+
addr: '::1/0',
|
156
|
+
method: 'md5'
|
157
157
|
}
|
158
158
|
],
|
159
159
|
password: {
|
@@ -167,17 +167,17 @@ module Pushapp
|
|
167
167
|
:server_root_password => options[:db_password],
|
168
168
|
:server_repl_password => options[:db_password],
|
169
169
|
:server_debian_password => options[:db_password],
|
170
|
-
:service_name =>
|
171
|
-
:basedir =>
|
172
|
-
:data_dir =>
|
173
|
-
:root_group =>
|
174
|
-
:mysqladmin_bin =>
|
175
|
-
:mysql_bin =>
|
176
|
-
:conf_dir =>
|
177
|
-
:confd_dir =>
|
178
|
-
:socket =>
|
179
|
-
:pid_file =>
|
180
|
-
:grants_path =>
|
170
|
+
:service_name => 'mysql',
|
171
|
+
:basedir => '/usr',
|
172
|
+
:data_dir => '/var/lib/mysql',
|
173
|
+
:root_group => 'root',
|
174
|
+
:mysqladmin_bin => '/usr/bin/mysqladmin',
|
175
|
+
:mysql_bin => '/usr/bin/mysql',
|
176
|
+
:conf_dir => '/etc/mysql',
|
177
|
+
:confd_dir => '/etc/mysql/conf.d',
|
178
|
+
:socket => '/var/run/mysqld/mysqld.sock',
|
179
|
+
:pid_file => '/var/run/mysqld/mysqld.pid',
|
180
|
+
:grants_path => '/etc/mysql/grants.sql'
|
181
181
|
}
|
182
182
|
end
|
183
183
|
|
@@ -193,15 +193,15 @@ module Pushapp
|
|
193
193
|
def common_config
|
194
194
|
cfg = {
|
195
195
|
nginx: {
|
196
|
-
dir:
|
197
|
-
log_dir:
|
198
|
-
binary:
|
199
|
-
user:
|
200
|
-
pid:
|
201
|
-
worker_connections:
|
196
|
+
dir: '/etc/nginx',
|
197
|
+
log_dir: '/var/log/nginx',
|
198
|
+
binary: '/usr/sbin/nginx',
|
199
|
+
user: 'www-data',
|
200
|
+
pid: '/var/run/nginx.pid',
|
201
|
+
worker_connections: '1024'
|
202
202
|
},
|
203
203
|
git: {
|
204
|
-
prefix:
|
204
|
+
prefix: '/usr/local'
|
205
205
|
},
|
206
206
|
}
|
207
207
|
cfg[:mysql] = mysql_config if mysql?
|
@@ -266,9 +266,9 @@ module Pushapp
|
|
266
266
|
user: user,
|
267
267
|
rubies: [ options[:ruby] ],
|
268
268
|
global: options[:ruby],
|
269
|
-
environment: { CFLAGS:
|
269
|
+
environment: { CFLAGS: '-march=native -O2 -pipe' },
|
270
270
|
gems: {
|
271
|
-
options[:ruby] => [{name:
|
271
|
+
options[:ruby] => [{name: 'bundler', version: '1.3.5'}]
|
272
272
|
}
|
273
273
|
}]
|
274
274
|
}
|
data/lib/pushapp/version.rb
CHANGED