Skip to content

Commit

Permalink
Added custom logging directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tvanhens committed Mar 1, 2014
1 parent c47490b commit 4951d9f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
driver:
name: vagrant

provisioner:
name: chef_solo

Expand Down
1 change: 1 addition & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
'http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest'

node.default[:dynamodb_local][:port] = 8000
node.default[:dynamodb_local][:log_dir] = './main'
3 changes: 2 additions & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
runit_service 'dynamodb-local' do
service_name 'dynamodb-local'
options({
:dynamodb_local_port => node[:dynamodb_local][:port]
:dynamodb_local_port => node[:dynamodb_local][:port],
:dynamodb_local_log_dir => node[:dynamodb_local][:log_dir]
})
end
2 changes: 1 addition & 1 deletion templates/default/sv-dynamodb-local-log-run.erb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
exec svlogd -tt ./main
exec svlogd -tt <%= @options[:dynamodb_local_log_dir] %>

0 comments on commit 4951d9f

Please sign in to comment.