nswebgen 0.8.5 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nsweb/generators/nsweb/app/app_generator.rb +1 -0
- data/lib/nsweb/generators/nsweb/app/templates/Gemfile +4 -4
- data/lib/nsweb/generators/nsweb/app/templates/config/unicorn_init_customer_qa.sh +0 -0
- data/lib/nsweb/generators/nsweb/app/templates/config/unicorn_init_production.sh +0 -0
- data/lib/nsweb/generators/nsweb/app/templates/config/unicorn_init_shareone_qa.sh +0 -0
- data/lib/nsweb/generators/nsweb/app/templates/config/vhosts/customer_qa.vhost.tt +16 -2
- data/lib/nsweb/generators/nsweb/app/templates/config/vhosts/production.vhost.tt +23 -3
- data/lib/nsweb/generators/nsweb/app/templates/layouts/maintenance.html.erb +41 -0
- data/lib/nsweb/generators/nsweb/app/templates/public/500.html +37 -32
- data/lib/nswebgen/version.rb +1 -1
- data/nswebgen.gemspec +1 -1
- metadata +6 -5
@@ -15,6 +15,7 @@ class AppBuilder < Rails::AppBuilder
|
|
15
15
|
inside 'app/assets/stylesheets' do
|
16
16
|
gsub_file 'application.css', /(require_tree.*)/, 'require_directory ./application'
|
17
17
|
end
|
18
|
+
template 'layouts/maintenance.html.erb', 'app/views/layouts/maintenance.html.erb'
|
18
19
|
git_keep 'app/mailers'
|
19
20
|
git_keep 'app/models'
|
20
21
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
source '
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
<%= database_gemfile_entry %>
|
4
4
|
|
@@ -8,8 +8,8 @@ gem 'therubyracer'
|
|
8
8
|
gem 'newrelic_rpm'
|
9
9
|
|
10
10
|
##### NSWEB GEMS #####
|
11
|
-
gem 'nsweb', git: 'git@inet-dev01.
|
12
|
-
#gem 'nsweb', git: 'git@inet-dev01.
|
13
|
-
#gem 'nsweb', git: 'git@inet-dev01.
|
11
|
+
gem 'nsweb', git: 'git@inet-dev01.share_one.com:nsweb.git'
|
12
|
+
#gem 'nsweb', git: 'git@inet-dev01.share_one.com:nsweb.git', tag: 'v1.0.0'
|
13
|
+
#gem 'nsweb', git: 'git@inet-dev01.share_one.com:nsweb.git', ref: '123abc'
|
14
14
|
#gem 'nsweb', path: '../../nsweb'
|
15
15
|
### END NSWEB GEMS ###
|
File without changes
|
File without changes
|
File without changes
|
@@ -23,14 +23,28 @@ server {
|
|
23
23
|
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
|
24
24
|
}
|
25
25
|
|
26
|
+
recursive_error_pages on;
|
27
|
+
|
26
28
|
if (-f $document_root/system/maintenance.html) {
|
29
|
+
set $maintenance "Y";
|
30
|
+
}
|
31
|
+
|
32
|
+
if (-f $request_filename) {
|
33
|
+
set $maintenance "Y";
|
34
|
+
}
|
35
|
+
|
36
|
+
if ($maintenance = "Y") {
|
27
37
|
return 503;
|
28
38
|
}
|
29
39
|
|
30
40
|
error_page 503 @maintenance;
|
31
41
|
location @maintenance {
|
32
|
-
|
33
|
-
|
42
|
+
error_page 405 /system/maintenance.html;
|
43
|
+
|
44
|
+
if (-f $request_filename) {
|
45
|
+
break;
|
46
|
+
}
|
47
|
+
rewrite ^(.*)$ /system/maintenance.html break;
|
34
48
|
}
|
35
49
|
|
36
50
|
location /favicon.ico {
|
@@ -23,14 +23,34 @@ server {
|
|
23
23
|
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
|
24
24
|
}
|
25
25
|
|
26
|
+
recursive_error_pages on;
|
27
|
+
|
26
28
|
if (-f $document_root/system/maintenance.html) {
|
29
|
+
set $maintenance "Y";
|
30
|
+
}
|
31
|
+
|
32
|
+
if (-f $request_filename) {
|
33
|
+
set $maintenance "Y";
|
34
|
+
}
|
35
|
+
|
36
|
+
if ($maintenance = "Y") {
|
27
37
|
return 503;
|
28
38
|
}
|
29
39
|
|
30
40
|
error_page 503 @maintenance;
|
31
41
|
location @maintenance {
|
32
|
-
|
33
|
-
|
42
|
+
error_page 405 /system/maintenance.html;
|
43
|
+
|
44
|
+
if (-f $request_filename) {
|
45
|
+
break;
|
46
|
+
}
|
47
|
+
rewrite ^(.*)$ /system/maintenance.html break;
|
48
|
+
}
|
49
|
+
|
50
|
+
location /favicon.ico {
|
51
|
+
access_log off;
|
52
|
+
log_not_found off;
|
53
|
+
return 204;
|
34
54
|
}
|
35
55
|
|
36
56
|
location / {
|
@@ -45,7 +65,7 @@ server {
|
|
45
65
|
}
|
46
66
|
}
|
47
67
|
|
48
|
-
error_page 500 502
|
68
|
+
error_page 500 502 504 /500.html;
|
49
69
|
location = /500.html {
|
50
70
|
root /var/www/<%= @app_name %>/current/public;
|
51
71
|
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--[if lt IE 7]> <html class="ie6"> <![endif]-->
|
3
|
+
<!--[if IE 7]> <html class="ie7"> <![endif]-->
|
4
|
+
<!--[if IE 8]> <html class="ie8"> <![endif]-->
|
5
|
+
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
|
6
|
+
<head>
|
7
|
+
<title><%= options.cuname %></title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
+
<meta charset="utf-8" />
|
10
|
+
<link href="/assets/nsweb/application.css" media="screen" rel="stylesheet" type="text/css" />
|
11
|
+
<link href="/assets/application.css" media="screen" rel="stylesheet" type="text/css" />
|
12
|
+
<link href="/assets/nsweb/print.css" media="print" rel="stylesheet" type="text/css" />
|
13
|
+
<link href="/assets/print.css" media="print" rel="stylesheet" type="text/css" />
|
14
|
+
<!--[if (IE 7) | (IE 8)]>
|
15
|
+
<link href="/assets/nsweb/ie.css" media="screen" rel="stylesheet" type="text/css" />
|
16
|
+
<link href="/assets/ie.css" media="screen" rel="stylesheet" type="text/css" />
|
17
|
+
<![endif]-->
|
18
|
+
</head>
|
19
|
+
<body>
|
20
|
+
<div id="constraint">
|
21
|
+
<div id="header">
|
22
|
+
<h1><%= options.cuname %></h1>
|
23
|
+
</div>
|
24
|
+
<div id="content">
|
25
|
+
<h2>System Unavailable</h2>
|
26
|
+
<p>
|
27
|
+
We are currently offline for <%%= reason ? reason : 'maintenance' %> as of <%%= Time.now.strftime('%H:%M %Z') %>, and expect to be back online <%%= deadline ? deadline : 'shortly' %>.
|
28
|
+
</p>
|
29
|
+
<p>
|
30
|
+
We apologize for any inconvenience.
|
31
|
+
</p>
|
32
|
+
</div>
|
33
|
+
<div id="footer">
|
34
|
+
<p>
|
35
|
+
© Copyright Share One, Inc., <%%= Time.now.year %>
|
36
|
+
All Rights Reserved
|
37
|
+
</p>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
</body>
|
41
|
+
</html>
|
@@ -3,36 +3,41 @@
|
|
3
3
|
<!--[if IE 7]> <html class="ie7"> <![endif]-->
|
4
4
|
<!--[if IE 8]> <html class="ie8"> <![endif]-->
|
5
5
|
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
6
|
+
<head>
|
7
|
+
<title><%= options.cuname %></title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
+
<meta charset="utf-8" />
|
10
|
+
<link href="/assets/nsweb/application.css" media="screen" rel="stylesheet" type="text/css" />
|
11
|
+
<link href="/assets/application.css" media="screen" rel="stylesheet" type="text/css" />
|
12
|
+
<link href="/assets/nsweb/print.css" media="print" rel="stylesheet" type="text/css" />
|
13
|
+
<link href="/assets/print.css" media="print" rel="stylesheet" type="text/css" />
|
14
|
+
<!--[if (IE 7) | (IE 8)]>
|
15
|
+
<link href="/assets/nsweb/ie.css" media="screen" rel="stylesheet" type="text/css" />
|
16
|
+
<link href="/assets/ie.css" media="screen" rel="stylesheet" type="text/css" />
|
17
|
+
<![endif]-->
|
18
|
+
</head>
|
19
|
+
<body>
|
20
|
+
<div id="constraint">
|
21
|
+
<div id="header">
|
22
|
+
<h1><%= options.cuname %></h1>
|
23
|
+
</div>
|
24
|
+
<div id="content">
|
25
|
+
<h2>Oops!</h2>
|
26
|
+
<p>
|
27
|
+
Something went wrong while trying to process your request. We've been
|
28
|
+
notified about the problem and will get it fixed as soon as possible.
|
29
|
+
<br />
|
30
|
+
If the problem persists, please notify the Credit Union.
|
31
|
+
<br />
|
32
|
+
<a href="/">Back</a>
|
33
|
+
</p>
|
34
|
+
</div>
|
35
|
+
<div id="footer">
|
36
|
+
<p>
|
37
|
+
© Copyright Share One, Inc.,
|
38
|
+
All Rights Reserved
|
39
|
+
</p>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</body>
|
38
43
|
</html>
|
data/lib/nswebgen/version.rb
CHANGED
data/nswebgen.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.require_paths = ['lib']
|
24
24
|
s.executables = ['nswebgen']
|
25
25
|
|
26
|
-
s.add_dependency 'railties', '3.1.
|
26
|
+
s.add_dependency 'railties', '3.1.12'
|
27
27
|
s.add_dependency 'sqlite3', '~> 1.3.5'
|
28
28
|
|
29
29
|
s.add_development_dependency 'geminabox'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nswebgen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-07-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.1.
|
22
|
+
version: 3.1.12
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - '='
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version: 3.1.
|
30
|
+
version: 3.1.12
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
32
|
name: sqlite3
|
33
33
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,6 +90,7 @@ files:
|
|
90
90
|
- lib/nsweb/generators/nsweb/app/templates/config/vhosts/customer_qa.vhost.tt
|
91
91
|
- lib/nsweb/generators/nsweb/app/templates/config/vhosts/production.vhost.tt
|
92
92
|
- lib/nsweb/generators/nsweb/app/templates/gitignore
|
93
|
+
- lib/nsweb/generators/nsweb/app/templates/layouts/maintenance.html.erb
|
93
94
|
- lib/nsweb/generators/nsweb/app/templates/public/500.html
|
94
95
|
- lib/nsweb/generators/nsweb/app/templates/public/500.js
|
95
96
|
- lib/nswebgen.rb
|
@@ -109,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
110
|
version: '0'
|
110
111
|
segments:
|
111
112
|
- 0
|
112
|
-
hash:
|
113
|
+
hash: 50988499
|
113
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
115
|
none: false
|
115
116
|
requirements:
|