dimanche 18 décembre 2016

Cannot deploy ember app in firebase

I am unable to deploy my ember application in firebase I can only see the welcome page of firebase hosting.

You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!

I have installed the emberfire add on as well as the firebase tool.

My config file looks this way :

    module.exports = function(environment) {
      var ENV = {
        modulePrefix: 'sample',
        environment: environment,
        rootURL: '/',
        locationType: 'auto',

        firebase : {
        apiKey: 'xxxxxx',
        authDomain: 'xxxxx',
        databaseURL: 'xxxx',
        storageBucket: 'xxxxx',
        messagingSenderId: 'xxxxx'
    }, 
        EmberENV: {
          FEATURES: {
            // Here you can enable experimental features on an ember canary build
            // e.g. 'with-controller': true
          }
        },

        APP: {
          // Here you can pass flags/options to your application instance
          // when it is created
        }
      };

      if (environment === 'development') {
        // ENV.APP.LOG_RESOLVER = true;
        ENV.APP.LOG_ACTIVE_GENERATION = true;
        ENV.APP.LOG_TRANSITIONS = true;
        ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
        ENV.APP.

LOG_VIEW_LOOKUPS = true;
  }

Firebase.json looks this way :

{
  "database": {
    "rules": "database.rules.json"
  },
  "hosting": {
    "public": "dist",
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ]
  }
}

I have built the app and deployed using following commands

ember build --prod

firebase login

firebase init

firebase deploy

Thanks in advance :-)




Aucun commentaire:

Enregistrer un commentaire