Questions tagged [lite-server]

Lightweight development only node server that serves a web app, opens it in the browser, refreshes when html or javascript change, injects CSS changes using sockets, and has a fallback page when a route is not found.

125 questions
1
vote
0 answers

curl: (7) Failed to connect to localhost port 9000

We are using AWS Lambda runtime interface emulator to run our app locally inside Docker using lite-server I start my docker container with: docker run -p 9000:8080 image-name The curl http://localhost:9000 command is returning curl: (7) Failed to…
priya1209
  • 11
  • 2
1
vote
1 answer

lite-server - npm start opens browser but index.html is not loaded (shows 'no internet')

I created a new folder in Windows 10 and opened it in Visual Studio Code. After creating 'index.html' at the root, I ran the following commands: npm init npm install --save-dev lite-server I added the following, under scripts, in…
MAK
  • 1,915
  • 4
  • 20
  • 44
1
vote
1 answer

Angular lite-server results in viewing a blank page

I have a Single page application and I want to run my application with a lite-server. This is my bs-config The problem is as follows when I run the lite-server and browse to my localhost:3000; the only thing I see is a blank page. It looks like the…
Koen Rombout
  • 220
  • 2
  • 4
  • 15
1
vote
2 answers

Changing the default file to be loaded using lite-server

How can I change the configurations to load a custom file using lite-server "browserSync" like "about.html" instead of the default one "index.html"?
Hazem Alabiad
  • 1,032
  • 1
  • 11
  • 24
1
vote
2 answers

npm install lite-server --save-dev error

I'm trying to use node for the first time in a VS project in windows. I installed node.js, below is the info: node -v v8.9.3 npm -v 5.5.1 Completed setup in the project using npm init, that seemed to work fine. npm install lite-server --save-dev …
1
vote
0 answers

lite-server with BrowserSync hosted on Heroku production ready?

I currently have an Angular 2 project that I'm trying to use for production hosted on heroku. It is currently being hosted on heroku and the start script heroku uses is: "scripts": { "start": "tsc && concurrently \"npm run tsc:w\" \"npm run lite\"…
Vishnu Murale
  • 173
  • 14
1
vote
0 answers

Ng build -w and lite-server concurrently

I have server and client part application. The server is nodejs + express, which serves static HTML from the public folder. In public folder is built Angular 2 application - ng build with the destination of the public folder. I am using for…
Podlipny
  • 75
  • 3
  • 9
1
vote
1 answer

Is this the right way to get lite-server to recognize the "server.index" override in bs-config.js?

lite-server seems to be ignoring my attempt to override the default index. I have bs-config.json: { "server": { "baseDir": "src", "index": "/index.3.html", "routes": { "/node_modules": "node_modules" } } } I am using…
Beans
  • 1,159
  • 7
  • 17
1
vote
1 answer

issue with Angular 2 forms

I deployed angular application , and made the lite-server running forever using forever.js . now the issue is if two different users are using the application and filling the form, then the data the first user is typing in is visible to second user…
swingmicro
  • 367
  • 1
  • 4
  • 19
1
vote
0 answers

Angular CLI: Where are dev bundle files located?

After having successfully run: $ ./node_modules/.bin/ng serve My browser loads all kinds of bundle files, like styles.bundle.js, but where these files actually are locally? Running find in the project folder cannot find any of these.
user2061057
  • 962
  • 1
  • 9
  • 20
1
vote
1 answer

How to solve "Access-Control-Allow-Origin" issue in Angular2 + Lite-Server?

I have an Angular 2 application that requests data from an external API. I can't change the API code, but I'm able to change the TypeScripts and the Lite-Server configuration. Error: XMLHttpRequest cannot load http://api.zanox.com/.... No…
Marcel
  • 2,810
  • 2
  • 26
  • 46
1
vote
0 answers

visual studio code change launch from chrome to lite-server

I'm trying to launch https://github.com/akveo/ng2-admin project in my developing enviroment and I face a problem. The ng2-admin project is developed in visual studio code with the following launch.json: { "version": "0.2.0", …
StuffHappens
  • 6,457
  • 13
  • 70
  • 95
1
vote
1 answer

Run browserify upon file change with tsc -w

I am new to npm build tools. I want to bundle the compiled typescript files as soon as there is a change in typescript files and run lite-server concurrently. To achieve that I have written following npm build script - "build": "tsc", "bundle":…
codeomnitrix
  • 4,179
  • 19
  • 66
  • 102
1
vote
1 answer

How do you run lite-server as a Windows service?

I am trying to set up lite-server as a Windows service so that it starts automatically when the machine starts. I am trying to do this via NSSM. I install as follows: nssm install lite-server Then, since I see it complaining in the…
Gigi
  • 28,163
  • 29
  • 106
  • 188
1
vote
1 answer

Phone cannot access sites being served by localhost(lite-server) on same WiFi network

Searched all over the place for a fix for this or even a good way to troubleshoot it. I've read the previous SO threads that seem to cover this issue but nothing in any of them has worked in my case. Basically, I can't get access to anything that…
mikeym
  • 5,705
  • 8
  • 42
  • 62
1 2
3
8 9