Simple 5 minute command-line file / directory server built with connect, inspired by nodejitsu's http-server to show off the simplicity and flexibility of connect as a modular server.
Questions tagged [serve]
272 questions
1
vote
0 answers
Error: EMFILE: too many open files, open '/app/build/index.html'
Using Serve to serve my React app. It seems that too many people are reading the static files. but somehow it is not getting closed. Due to this the react app is crashing
events.js:177
throw er; // Unhandled 'error' event
^
Error:…

ganesh deshmukh
- 314
- 4
- 17
1
vote
2 answers
How to serve an executable
Let's say I have written a simple C program(language doesn't matter), compiled it and now I have the executable.
I was wondering if there is an easy way to serve the program on a webserver so for every connection to the server, the program is…

Bat
- 771
- 11
- 29
1
vote
0 answers
Angular9 ng-serve access outside localhost
Being able to serve my application to a couple of friends over a VPN network.
Configuration 1:
OS:Slackware x64
Node:13.13.0 --- built from source.
Npm: 6.14.4
ng: 9.1.1
ts: 3.8.3. (although the project uses 3.7.5)
Configuration 2:
OS: Win10…

Nikola Pavlovic
- 91
- 10
1
vote
1 answer
Why are the source code and node_modules deployed?
I use CRA (react-scripts@2.1.3).
If I serve my app locally, so using webpack devserver, I have the expected files deployed. (bundle, chunks, etc...)
However, if I serve my build folder, with a npm run build, followed by a serve -s build, I have the…

John Doe
- 1,092
- 3
- 12
- 25
1
vote
0 answers
How do I start react serve in Development mode?
So, I have a React app, which is live on production using serve.
These are the commands I've used for doing so:
NODE_ENV=production react-scripts build
NODE_ENV=production serve -s build
So that's production done!
But now I want to do the same…

Shubham Kushwah
- 11
- 2
1
vote
0 answers
Ionic 4 : use cordova media-capture plugin in the Ionic Lab?
I am currently learning Ionic 4, and for an academic project, we have to develop a mobile app for iOS and Android.
The development of our project was going prefectly fine, and we used the ionic serve -l to run our app. We find that the Ionic Lab is…

souyahia
- 83
- 1
- 7
1
vote
1 answer
Cannot GET /resources/cards
I'm having issues trying to serve static files with expressJS.
I want to serve files from a folder, using virtual route.
My app architecture looks like this
├── app
| ├── assets
| └── data
| └── img
| └── cards
| …

Damien Letellier
- 39
- 5
1
vote
1 answer
Windows Firewall - Laravel Artisan Serve - Allow Port in Inbound Rule (not working)
I'm using Laravel..And i develop a website... And I want try to access the site from other devices....
.
.
I run php artisan serve --port=4042 --host=0.0.0.0 in my computer (windows 10)..
And I allow port 4042 by create new Inbound Rules in Windows…

Syamsoul Azrien
- 2,534
- 4
- 32
- 55
1
vote
2 answers
Fontawesome is not displayed correctly on laravel when using xampp
There seems to be a difference between using xampp and PHP's built-in development server. When I use php artisan serve on my laravel environment, all icons from fontawesome are displayed correctly.
But when I use xampp, all icons look like squares…

Tenarius
- 540
- 1
- 5
- 23
1
vote
0 answers
ng build/serve not working ERROR in template
Having issues trying to build/serve an app created using nx/Angular 8. There are 3 issues:
WARNING in Entry point '@angular/material' contains deep imports ... (rxjs/observable)
ERROR in template must be a string
i 「wdm」: Failed to compile.
Any…

Harry
- 546
- 6
- 22
- 50
1
vote
1 answer
Error while running php artisan serve command on localhost
I am having issues with php artisan serve command. I am working on one Laravel project and when I access the folder from browser it is working fine but when I run the php artisan serve command it shows me the following error:
Warning:
…

Pranay Sute
- 441
- 1
- 8
- 21
1
vote
2 answers
Error: Missing binding when using ionic serve
I am trying to serve my ionic project. but when i run ionic serve it give me the following error!
Module build failed (from ./node_modules/sass-loader/lib/loader.js):
[ng] Error: Missing binding…

Gedeon Evina
- 23
- 1
- 6
1
vote
2 answers
How can I change from one project of Laravel to another in the localhost:8000?
I started a new project on Laravel, and i want to visualize the Home on localhost:8000. But when I try it, I keep getting the home from another project that I was working on before.
How can I access my new project?
I tried the command php artisan…

petrushka_95
- 79
- 8
1
vote
2 answers
Is there an alternative for initiate bokeh server through bokeh serve --show?
I recently built a dashboard that includes bokeh widgets. Every time I run it I need to go to anaconda prompt and type
bokeh serve --show myapp.py
Is there a more friendly way to do this without open up a cmd window? I'm currently on Windows 7 and…

chen
- 97
- 1
- 10
1
vote
1 answer
Angular set build command line parameter in config (--host / --disable-host-check for --configuration=production)
When I start my Angular project on my server I always need to add --disable-host-check and --host=0.0.0.0 for it to work. Since I don't need to do that in my local dev environment I would like to configure these parameters in my angular.json build…

Juliette
- 966
- 16
- 35