Skip to content

Commit

Permalink
Add storeConfigInMeta automatically when running ember fastboot.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Apr 8, 2015
1 parent 78b79e6 commit 1ab7cc2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,10 @@ ember install:addon ember-cli-fastboot
In order to get FastBoot working, you will first need to do the
following:

* Disable Ember CLI's default configuration meta tag
* Install Ember Canary and enable HTMLbars
* Enable the required feature flags
* Set the router's location to NoneLocation

#### Disable Default Configuration

Modify your application's generated `Brocfile` to disable storing
configuration information in a `<meta>` tag:

```js
// Brocfile.js
var app = new EmberApp({
storeConfigInMeta: false
});
```

#### Install Ember Canary and Enable HTMLbars

To enable Ember canary and HTMLbars, run the following commands:
Expand Down
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,11 @@ module.exports = {
if (type === 'body') {
return "<!-- EMBER_CLI_FASTBOOT_BODY -->";
}
},

included: function() {
if (process.env.EMBER_CLI_FASTBOOT) {
this.app.options.storeConfigInMeta = false;
}
}
};
2 changes: 2 additions & 0 deletions lib/commands/fastboot.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ module.exports = {
},

run: function(options, args) {
process.env.EMBER_CLI_FASTBOOT = true;

var runCommand = function() {
return this.runCommand(this.project.name(), options);
}.bind(this);
Expand Down

0 comments on commit 1ab7cc2

Please sign in to comment.