#Where do templates load on?
1 messages · Page 1 of 1 (latest)
the answer is application.hbs in app/templates folder
this guide page may be helpful
https://guides.emberjs.com/release/routing/rendering-a-template/
I think that I understand the rendering into the {{outlet}} of the parent. But After I tried to "ember serve" my application basically works. But when I do
ember build the dist version is just empty and when I do a /route it tells me that there is no GET /route
Basically my goal is to deploy the application on Firebase
https://guides.emberjs.com/v3.8.0/templates/handlebars-basics/
When I open the index.hmtl from the dist map, I get the basic index.hmtl
I probably do not understand how it works
Your index.html page just provides the JavaScript assets that will run your Ember app. You need to host your dist folder somewhere to see the resulting app
Just the dist folder right?
Right
I tried that using firebase, I got back the index.html page
@proud grove you can use something like https://www.npmjs.com/package/http-server
But you’re asking about subpages and why those don’t work?
ember serve runs the server and hosts the dist folder for you locally, but for deploying to a production server you'll want to host the assets somewhere. This guide will explain it more in depth https://guides.emberjs.com/release/getting-started/quick-start/#toc_building-for-production
Well they do not work when trying to deploy it
I will read both guides before I ask further. ty
I haven't used Firebase myself, but possibly this addon and its firebase plugin can help http://ember-cli-deploy.com
Generally apps work well in hosting when loading on the initial page. But most SPAs need something done on the host to inform the host that all subroutes should actually use index.html for the contact route at /contact (for instance)
is it possible that you need to inform that the application is a one page? @jade stone
It works!
I did have to do something in the host configuration
for the single page application