Assuming you have the hosting account you need the following.
Set up DNS for your website
Heroku, create the the database and users names for it with password and put that in your application. (I think they ask you to use MySQL provider - see link
Transfer your files to your Heroku site/account by using SFTP or git If all of those are done correctly, then you should be able to reach your site publicly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.