server.js 252 B

12345678910111213
  1. const express = require("express");
  2. const app = express();
  3. const port = process.env.PORT || 8080;
  4. app.get("/", (req, res) => {
  5. res.send("Hello from OpenShift and Gogs!");
  6. });
  7. app.listen(port, () => {
  8. console.log(`Listening on ${port}`);
  9. });