Using relative paths for assets for heroku deployment
Take a look at Multi-Environment Configs and specifically environmentVariables. Then you can add your variables to the settings in the Craft CP.

Note: you'll have to figure out Heroku's paths by trial and error or ask their support staff for help.