<commit_before>package "build-essential"
package "nginx"


USER = node[:app][:user]
user USER



# setup nginx
template "/etc/nginx/sites-enabled/default" do
  mode 00644
  source "blink.nginx.erb"
  notifies :reload, "service[nginx]"
end

service "nginx" do
  supports :restart => true, :reload => true, :start => true, :enable => true
  action [ :enable, :start ]
end


gem_package "foreman"


bash "create/update upstart scripts" do
  cwd "#{node[:app][:home]}"
  code "foreman export --app #{node[:app][:name]} --user #{USER} upstart /etc/init"
end


service "#{node[:app][:name]}" do
  provider Chef::Provider::Service::Upstart
  enabled true
  running true
  supports :restart => true, :reload => true, :status => true
  action [:enable, :start]
end<commit_msg>Pass app dir to foreman<commit_after>package "build-essential"
package "nginx"


USER = node[:app][:user]
user USER



# setup nginx
template "/etc/nginx/sites-enabled/default" do
  mode 00644
  source "blink.nginx.erb"
  notifies :reload, "service[nginx]"
end

service "nginx" do
  supports :restart => true, :reload => true, :start => true, :enable => true
  action [ :enable, :start ]
end


gem_package "foreman"


bash "create/update upstart scripts" do
  cwd "#{node[:app][:home]}"
  code "foreman export --app #{node[:app][:name]} --user #{USER} upstart /etc/init -d #{node[:app][:home]}"
end


service "#{node[:app][:name]}" do
  provider Chef::Provider::Service::Upstart
  enabled true
  running true
  supports :restart => true, :reload => true, :status => true
  action [:enable, :start]
end
{'fraction_non_alphanumeric': 0.16454081632653061, 'fraction_numerical': 0.006377551020408163, 'mean_word_length': 4.5638297872340425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7308008', 'n_tokens_mistral': 570, 'n_tokens_neox': 541, 'n_words': 157}