mirror of
https://github.com/dilllxd/gitfolio.git
synced 2024-08-14 22:28:09 +00:00
fixed #55
This commit is contained in:
parent
8441691434
commit
8fcee176c4
1 changed files with 2 additions and 1 deletions
3
run.js
3
run.js
|
@ -1,8 +1,9 @@
|
||||||
const express = require('express');
|
const express = require('express');
|
||||||
const open = require('open');
|
const open = require('open');
|
||||||
const defaultBrowser = require('x-default-browser');
|
const defaultBrowser = require('x-default-browser');
|
||||||
|
const outDir = path.resolve('./dist/' || process.env.OUT_DIR);
|
||||||
const app = express();
|
const app = express();
|
||||||
app.use(express.static(__dirname + '/dist'));
|
app.use(express.static(`${outDir}/dist`));
|
||||||
|
|
||||||
function runCommand(){
|
function runCommand(){
|
||||||
app.get('/',function(req,res){
|
app.get('/',function(req,res){
|
||||||
|
|
Loading…
Reference in a new issue