how to deploy ember-cli + rails app on heroku

廉价感情. 提交于 2019-12-08 18:47:32

You're routing root requests to speaker#index, which is why you're getting the json response when visiting /.

You want your rails app to serve up index.html on all requests other than /api, something like

get '*path', to: 'index#show'

That action should just serve up your Ember CLI project's static index.html file.

I'd also suggest getting this working locally before messing with Heroku.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!