<commit_before># This will simply do chmod g+w on all dir
# See task :setup
set :group_writable, true

after "deploy:setup", :roles => :web do
  # If :deploy_to is something like /var/www then deploy:setup created
  # directories with sudo and we need to fix it
  sudo "chown -R #{apache_user}:#{apache_group} #{deploy_to}"
  run "mkdir #{shared_path}/var"
end

after "deploy:update", :roles => :web do
  capez.cache.clear
  capez.autoloads.generate
  capez.var.fix_permissions
end<commit_msg>Use 'user' when fixing folder permissions<commit_after># This will simply do chmod g+w on all dir
# See task :setup
set :group_writable, true

after "deploy:setup", :roles => :web do
  # If :deploy_to is something like /var/www then deploy:setup created
  # directories with sudo and we need to fix it
  sudo "chown -R #{user}:#{apache_group} #{deploy_to}"
  run "mkdir #{shared_path}/var"
end

after "deploy:update", :roles => :web do
  capez.cache.clear
  capez.autoloads.generate
  capez.var.fix_permissions
end
{'fraction_non_alphanumeric': 0.11320754716981132, 'fraction_numerical': 0.0, 'mean_word_length': 4.6, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2827716', 'n_tokens_mistral': 362, 'n_tokens_neox': 347, 'n_words': 118}