No rubocop rake task on deploy
mathias opened this issue · 2 comments
mathias commented
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 commented
Ah, I see we could just copy this rake task style: https://github.com/interagent/pliny/blob/master/lib/template/lib/tasks/spec.rake#L2-L7