Skip to content

Commit

Permalink
feat: Add express server for drupal-lab example integration
Browse files Browse the repository at this point in the history
  • Loading branch information
adamszalapski committed Aug 22, 2019
1 parent 8ab682a commit 3197d6c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/servers/integration-server/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const express = require('express');
const app = express();

const port = process.env.PORT || 2517;

async function init() {
app.use(express.static('www/integrations/drupal-lab/'));

app.get(['/'], (req, res) => {
res.sendFile('index.html');
});

app.listen(port, () => {
console.log(`Express listening on http://localhost:${port}`);
});
}

init();

0 comments on commit 3197d6c

Please sign in to comment.