Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2016-12-06T05:35:24.065512+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=campusoja.herokuapp.com request_id=8f08ec84-8083-4623-9b40-9cb2aea7a695 fwd="41.190.2.54" dyno= connect= service= status=503 bytes=
- 2016-12-06T05:35:26.531859+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=campusoja.herokuapp.com request_id=7cd2a45f-b083-41b8-8c3b-bc46ab35629d fwd="41.190.2.54" dyno= connect= service= status=503 bytes=
- import express from 'express';
- import http from 'http';
- import bodyParser from 'body-parser';
- import mongoose from 'mongoose';
- import config from './config';
- import routes from './routes';
- let app = express();
- app.server = http.createServer(app);
- //parse json
- app.use(bodyParser.json({"limit": config.bodyLimit}))
- //passport config
- //api routes
- //middlewares intercepts to handler before it gets to the ..
- app.use('/api/v1', routes);
- app.server.listen(config.port);
- console.log(`Started server on port ${app.server.address().port}`);
- export default app;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement