mercredi 26 avril 2017

Ember-CLI: Ember Build keeps building the wrong index.html

Ideally, I want my index.html from this:

<!-- app/index.html -->
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Program With Erik Blog Example</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    

    <link rel="stylesheet" href="assets/vendor.css">
    <link rel="stylesheet" href="assets/example1.css">

    
  </head>
  <body>
    

    <script src="assets/vendor.js"></script>
    <script src="assets/example1.js"></script>

    
  </body>
</html>

into production code. But for some strange reason, each time I call ember build, I do not get the expected production-looking code. Instead I get something like this

I'm am new to deploying ember apps with firebase. I have been fiddling around a lot with my config/environment.js file and my firebase.json file mostly.

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Welcome to Firebase Hosting</title>
    .
    .
    .
    <!-- lots of code -->

It's the default firebase page!

Firebase welcome page

What is happening? I've deleted the picture multiple times. But each time I call ember build it builds the firebase default page rather than my ember app index.html.

I'm new to ember and I've been fiddling around heavily with the config/environment.js and the firebase.js. Any thoughts on why this might be happening?




Aucun commentaire:

Enregistrer un commentaire