Decided to try sagemath cloud instead of Heroku since it's more flexible and totally free.