Skip to content

Commit a7dc5fb

Browse files
author
Robert Jackson
committed
Document reload method.
1 parent 3b13ce1 commit a7dc5fb

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)