ember-fastboot / ember-cli-fastboot

Server-side rendering for Ember.js apps
http://ember-fastboot.com/
MIT License
852 stars 160 forks source link

Add an optional callback to server start #933

Open musaffa opened 4 months ago

musaffa commented 4 months ago

We use Nginx in front of Ember App server. To start Nginx server, it needs to know whether Ember App server has started. The optional callback function added to this PR can be used for this purpose.

Taking example from Heroku Nginx, a callback function can be like the following:

server.start(function () {
  fs.openSync('/tmp/app-initialized', 'w');
});