Skip to content

Instantly share code, notes, and snippets.

@nestorw
nestorw / analytics_tables.md
Created February 28, 2018 19:52
[Hyrax Analytics tables] #hyrax

Both of these tables might be able to be combined and we could add a stat_type field to discern them.

foreign keys for work_id, fileset_id, and depositor_id will help with summing up counts for aggrigate reporting.

file_stats

  • id
  • file_id
  • work_id
  • fileset_id
  • depositor_id
@nestorw
nestorw / logs.rake
Last active June 27, 2017 17:47
Capistrano Task to View Logs
namespace :logs do
desc "Tail logs from the given file"
task :tail, :file do |t, args|
if args[:file]
on roles(:app) do
execute "tail -f #{shared_path}/log/#{args[:file]}.log"
end
else
puts "please specify a logfile e.g: 'rake logs:tail[logfile]"
puts "will tail 'shared_path/log/logfile.log'"
### Keybase proof
I hereby claim:
* I am nestorw on github.
* I am nestor (https://keybase.io/nestor) on keybase.
* I have a public key whose fingerprint is 4730 4057 FE26 C762 76BD 25DD 8864 66BF 0533 D21B
To claim this, I am signing this object: