1
0
Fork 0
mirror of https://github.com/dilllxd/gitfolio.git synced 2024-08-14 22:28:09 +00:00
This commit is contained in:
imfunny 2019-05-24 12:54:26 +05:30 committed by GitHub
parent 8441691434
commit 8fcee176c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

3
run.js
View file

@ -1,8 +1,9 @@
const express = require('express');
const open = require('open');
const defaultBrowser = require('x-default-browser');
const outDir = path.resolve('./dist/' || process.env.OUT_DIR);
const app = express();
app.use(express.static(__dirname + '/dist'));
app.use(express.static(`${outDir}/dist`));
function runCommand(){
app.get('/',function(req,res){