Skip to content

Commit 90a378c

Browse files
author
Robert Jackson
authored
Document reload method. (#235)
Document `reload` method.
2 parents 3b13ce1 + a7dc5fb commit 90a378c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ class FastBoot {
8080
}
8181
}
8282

83+
/**
84+
* Destroy the existing Ember application instance, and recreate it from the provided dist path.
85+
* This is commonly done when `dist` has been updated, and you need to prepare to serve requests
86+
* with the updated assets.
87+
*
88+
* @param {Object} options
89+
* @param {string} options.distPath the path to the built Ember application
90+
*/
8391
reload({ distPath }) {
8492
if (this._app) {
8593
this._app.destroy();

0 commit comments

Comments
 (0)