Operation of dynos in Heroku

0
  • How do the Heroku dynos work?
  • Can I have more than one?

For now I have

web: node app.js  --> levanta la aplicación de Angular
worker: bundle exec puma -C config/puma.rb --> Rails API

Until then everything works well for me, I get up the application of angular and the api of rails.

But when I make a call from Angular to the API, it gives me a 404 error . The call /api/authenticate is directed to web1 and not to the API.

I do not know if it's conceptually wrong to put the angular web and the api worker on the web.

    
asked by morcheeba 25.09.2017 в 22:16
source

0 answers