简体   繁体   中英

Do I need 2 hosting services if I want to have a Rails RESTful API and an AngularJS2 application?

As the question suggests, I'm planning to have separate web apps. One is purely AngularJS2 and the other is purely Rails RESTful API. Do I need 2 hosting services to support that? I'm currently trying out Heroku and it seems it can only deploy 1 project at a time.

Thanks!

I don't think you need to host twice to get this done at all. I'm assuming one app is a web app, and the other is a mobile app, which will be accessing data from the API of your app. So you host your at Heroku, to support your web app, And configure your mobile app to make request calls to heroku hosted app's API to get resources.

Please provide more details, if this doesn't clarify. Thanks.

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