interagent/pliny

No rubocop rake task on deploy

mathias opened this issue · 2 comments

Seeing this when deploying on Heroku:

remote:        LoadError: cannot load such file -- rubocop/rake_task
remote:        /tmp/build_4e2a1988938618c73e23e23d226ec1be/lib/tasks/rubocop.rake:2:in `require'
remote:        /tmp/build_4e2a1988938618c73e23e23d226ec1be/lib/tasks/rubocop.rake:2:in `<top (required)>'
remote:        /tmp/build_4e2a1988938618c73e23e23d226ec1be/Rakefile:7:in `load'
remote:        /tmp/build_4e2a1988938618c73e23e23d226ec1be/Rakefile:7:in `block in <top (required)>'
remote:        /tmp/build_4e2a1988938618c73e23e23d226ec1be/Rakefile:7:in `each'
remote:        /tmp/build_4e2a1988938618c73e23e23d226ec1be/Rakefile:7:in `<top (required)>'

Do we need to guard unless it is in dev or test environment when loading that file?

@mathias I've PR'ed a fix to this issue.