Hi @NIval,
Other folks who use Heroku as a hosting environment may wish to weigh in further - it’s not something that I have experience with, but you may wish to check out the last post here, where a community member offers some advice: OJS 3.0.2 Non-Interactive Command Line install - #6 by thiagogomesverissimo
Best regards,
Roger
PKP Team