Giter VIP home page Giter VIP logo

Comments (6)

imfunniee avatar imfunniee commented on May 18, 2024 1

The issue has been fixed in latest release v0.1.5 (hopefully feel free to re-open the issue if hasn't been) πŸ˜„πŸ™Œ

from gitfolio.

Gelbpunkt avatar Gelbpunkt commented on May 18, 2024

I found this to be fixed by removing the spawn of a browser session. This is the minimal code for your own run.js (assuming your stuff is in dist/ and this is in the parent directory). You can use node run.js to run the webserver

const express = require('express');
const path = require('path');
const outDir = path.resolve('./dist/' || process.env.OUT_DIR);

const app = express();

app.use(express.static(`${outDir}`));

app.get('/', function(req,res) {
  res.sendFile('/index.html');
});

app.listen(8000, function() {
  console.log('running on port 8000');
});

from gitfolio.

made-by-traxam avatar made-by-traxam commented on May 18, 2024

On which OS are you?

Edit: I can see the debian sign in the image but is it plain debian or another debian-based distro?

from gitfolio.

Prodyte avatar Prodyte commented on May 18, 2024

On which OS are you?

Edit: I can see the debian sign in the image but is it plain debian or another debian-based distro?

Plain debian

from gitfolio.

imfunniee avatar imfunniee commented on May 18, 2024

I think the error is caused by this package that opens up the website on your default browser but chrome isn't able to open it . If you guys want i can remove that package and only output the port on which the website would be running and you can manually open it.

from gitfolio.

Gelbpunkt avatar Gelbpunkt commented on May 18, 2024

I'd definitely prefer it as it doesn't work on servers without monitors or browser installed

from gitfolio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.