Commit 77f07c48 authored by Imran Salam's avatar Imran Salam
Browse files

temporarily disable prod server from using https (AWS only works in http)

parent 06dc6c3f
......@@ -12,14 +12,16 @@ const app = new Koa();
app.use(convert(history()));
app.use(serve(path.join(__dirname, 'dist'), { br: true, gzip: false }));
const server = https.createServer(
{
key: fs.readFileSync('localhost.key'),
cert: fs.readFileSync('localhost.crt')
},
app.callback()
);
// const server = https.createServer(
// {
// key: fs.readFileSync('localhost.key'),
// cert: fs.readFileSync('localhost.crt')
// },
// app.callback()
// );
server.listen(3000);
// server.listen(3000);
app.listen(3000);
console.log('Running on https://localhost:3000');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment