Closed lmdragun closed 9 years ago
var express = require("express");
var app = express();
var bodyParser = require("body-parser");
app.use( bodyParser.json() );
app.set('view engine', 'hbs')
app.use(express.static( __dirname + '/public'));
app.get("/", function( req, res ){
res.render("index");
})
app.listen(process.env.PORT || 5000, function(){
console.log("app listening on port 3000")
})
Also, in the future, if you're asked to check your logs, you can do that with heroku logs
.
I've looked at how others have done it and googled for more information. Heroku says that my app is running on traditional dynos and heroku status says there are no issues.
I get this every time I try to go to my app:
Here is my package.json:
Here is my Procfile:
I originally had index.js, but changed it to server.js because I didn't know if that was affecting things.