orats 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/orats/commands/new/rails.rb +0 -12
- data/lib/orats/templates/includes/new/rails/.env +2 -2
- data/lib/orats/templates/includes/new/rails/config/puma.rb +4 -6
- data/lib/orats/templates/includes/new/rails/config/sidekiq.yml +1 -1
- data/lib/orats/templates/includes/new/rails/config/unicorn.rb +4 -4
- data/lib/orats/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: cbccb8c00361dea723d301183745797447eeeb4f
|
4
|
+
data.tar.gz: dbad0eeb8335a5757768e2caa618c58bbcd3a6a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65e9bbdc2b9213da36d70496563f408862a6e9f5e6c70298df9a143d80c59d9b1db1cb5f1adac574838551a74513e01b4f79e33fe7eabfbbb2ce577b64769da9
|
7
|
+
data.tar.gz: 3921fb46ed73e72dadbbd4a49c647165141671de60b866f1c159fc0a44b1a4c667b2a19c5eae473ac7a977b5566d43c42a650a3c3f224211d9aae5cf7d976a65
|
@@ -38,7 +38,6 @@ module Orats
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def rails_template_actions
|
41
|
-
create_env_paths
|
42
41
|
gsub_postgres_info
|
43
42
|
gsub_redis_info
|
44
43
|
gsub_readme
|
@@ -53,17 +52,6 @@ module Orats
|
|
53
52
|
generate_favicons
|
54
53
|
end
|
55
54
|
|
56
|
-
def create_env_paths
|
57
|
-
task 'Create the log and run state paths'
|
58
|
-
|
59
|
-
service = File.basename(@target_path)
|
60
|
-
paths = "log/#{service} tmp/#{service} log/sidekiq tmp/sidekiq"
|
61
|
-
|
62
|
-
run_from @target_path, "mkdir #{paths}"
|
63
|
-
|
64
|
-
commit 'Add log and run state paths'
|
65
|
-
end
|
66
|
-
|
67
55
|
def gsub_postgres_info
|
68
56
|
task 'Update the DATABASE_URL'
|
69
57
|
|
@@ -47,9 +47,9 @@ SIDEKIQ_CONCURRENCY: 5
|
|
47
47
|
SERVICE: 'app_name'
|
48
48
|
|
49
49
|
# the path where logs get written to
|
50
|
-
# in production you might consider /var/log
|
50
|
+
# in production you might consider /var/log/app_name
|
51
51
|
LOG_PATH: 'log'
|
52
52
|
|
53
53
|
# the path that will contain pids and sockets
|
54
|
-
# in production you will likely want to set this to '/var/run'
|
54
|
+
# in production you will likely want to set this to '/var/run/app_name'
|
55
55
|
RUN_STATE_PATH: 'tmp'
|
@@ -6,17 +6,15 @@ workers ENV['WORKERS'].to_i
|
|
6
6
|
if ENV['RAILS_ENV'] == 'development' || ENV['RAILS_ENV'] == 'test'
|
7
7
|
bind 'tcp://0.0.0.0:3000'
|
8
8
|
else
|
9
|
-
bind "unix:#{ENV['RUN_STATE_PATH']}/#{ENV['SERVICE']}
|
9
|
+
bind "unix:#{ENV['RUN_STATE_PATH']}/#{ENV['SERVICE']}"
|
10
10
|
end
|
11
11
|
|
12
|
-
pidfile "#{ENV['RUN_STATE_PATH']}/#{ENV['SERVICE']}
|
12
|
+
pidfile "#{ENV['RUN_STATE_PATH']}/#{ENV['SERVICE']}.pid"
|
13
13
|
|
14
14
|
worker_timeout 30
|
15
15
|
|
16
|
-
stdout_redirect "#{ENV['LOG_PATH']}/#{ENV['SERVICE']}
|
17
|
-
"#{ENV['SERVICE']}.
|
18
|
-
"#{ENV['LOG_PATH']}/#{ENV['SERVICE']}/" + \
|
19
|
-
"#{ENV['SERVICE']}.error.log"
|
16
|
+
stdout_redirect "#{ENV['LOG_PATH']}/#{ENV['SERVICE']}.access.log",
|
17
|
+
"#{ENV['LOG_PATH']}/#{ENV['SERVICE']}.error.log"
|
20
18
|
|
21
19
|
preload_app!
|
22
20
|
|
@@ -6,16 +6,16 @@ worker_processes ENV['WORKERS'].to_i
|
|
6
6
|
if ENV['RAILS_ENV'] == 'development' || ENV['RAILS_ENV'] == 'test'
|
7
7
|
listen '0.0.0.0:3000'
|
8
8
|
else
|
9
|
-
listen "unix:#{ENV['RUN_STATE_PATH']}/#{ENV['SERVICE']}
|
9
|
+
listen "unix:#{ENV['RUN_STATE_PATH']}/#{ENV['SERVICE']}",
|
10
10
|
backlog: 64
|
11
11
|
end
|
12
12
|
|
13
|
-
pid "#{ENV['RUN_STATE_PATH']}/#{ENV['SERVICE']}
|
13
|
+
pid "#{ENV['RUN_STATE_PATH']}/#{ENV['SERVICE']}.pid"
|
14
14
|
|
15
15
|
timeout 30
|
16
16
|
|
17
|
-
stdout_path "#{ENV['LOG_PATH']}/#{ENV['SERVICE']}
|
18
|
-
stderr_path "#{ENV['LOG_PATH']}/#{ENV['SERVICE']}
|
17
|
+
stdout_path "#{ENV['LOG_PATH']}/#{ENV['SERVICE']}.access.log"
|
18
|
+
stderr_path "#{ENV['LOG_PATH']}/#{ENV['SERVICE']}.error.log"
|
19
19
|
|
20
20
|
preload_app true
|
21
21
|
|
data/lib/orats/version.rb
CHANGED