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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98a4802b7b1d109d7bd50407c2fb82082a0fd51c
4
- data.tar.gz: 26e2ff60d48cd9b36b884c4dd1bf15ff22d1a94b
3
+ metadata.gz: cbccb8c00361dea723d301183745797447eeeb4f
4
+ data.tar.gz: dbad0eeb8335a5757768e2caa618c58bbcd3a6a4
5
5
  SHA512:
6
- metadata.gz: dd92db4f7de6310a1da383eff6bcbe9e8cccd4a672adad6da092d434d8a0c59cb5f4bf8f9640f108de81bb2ff22682d37351fd9a67f0f7e42249a81504661910
7
- data.tar.gz: 8bcbffa756969375179cf174002003bb7f5c6ab07377b0d53f702e2e9a6c191b469f106508bc443157bcd9d0b093a48d726e9ef4a69dc40127b4a0226ce997e6
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']}/#{ENV['SERVICE']}"
9
+ bind "unix:#{ENV['RUN_STATE_PATH']}/#{ENV['SERVICE']}"
10
10
  end
11
11
 
12
- pidfile "#{ENV['RUN_STATE_PATH']}/#{ENV['SERVICE']}/#{ENV['SERVICE']}.pid"
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']}.access.log",
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
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- :pidfile: "<%= ENV['RUN_STATE_PATH'] %>/sidekiq/sidekiq.pid"
2
+ :pidfile: "<%= ENV['RUN_STATE_PATH'] %>/sidekiq.pid"
3
3
  :concurrency: <%= ENV['SIDEKIQ_CONCURRENCY'].to_i %>
4
4
  :queues:
5
5
  - default
@@ -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']}/#{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']}/#{ENV['SERVICE']}.pid"
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']}/#{ENV['SERVICE']}.access.log"
18
- stderr_path "#{ENV['LOG_PATH']}/#{ENV['SERVICE']}/#{ENV['SERVICE']}.error.log"
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
 
@@ -1,4 +1,4 @@
1
1
  # set the version of this gem
2
2
  module Orats
3
- VERSION = '0.9.1'
3
+ VERSION = '0.9.2'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Janetakis