简体   繁体   中英

How to deploy Angular, Nodejs & Mysql web app to heroku?

I have my back-end server written on Nodejs (Express) and front-end on angular4 which consumes back-end apis. I used db Mysql. My back-end Nodejs server folder structure is like this

在此处输入图片说明

How can i deploy my complete application (Front-End + Back-End +DB) fully functional on heroku?

Assuming you have the hosting account you need the following.

  1. Set up DNS for your website

    https://devcenter.heroku.com/articles/custom-domains

  2. 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

    https://devcenter.heroku.com/articles/heroku-mysql

  3. 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.

https://devcenter.heroku.com/articles/transferring-apps

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM