Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Favor Express functions over custom #87

Closed
2 tasks done
scottcorgan opened this issue Jun 5, 2014 · 1 comment
Closed
2 tasks done

Favor Express functions over custom #87

scottcorgan opened this issue Jun 5, 2014 · 1 comment
Milestone

Comments

@scottcorgan
Copy link
Contributor

  • listen() instead of start()
  • close() (via the https server object) instead of stop
@scottcorgan scottcorgan added this to the 0.12.0 milestone Jun 5, 2014
@scottcorgan
Copy link
Contributor Author

var app = superstatic();

// PORT is optional. Uses port in config if not provided
app.listen(PORT, function () {

});

app.close(function () {

});

scottcorgan pushed a commit that referenced this issue Jun 5, 2014
scottcorgan pushed a commit that referenced this issue Jun 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant