Questions tagged [serve]

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.

272 questions
1
vote
1 answer

ionic 4 sub paths not loading when running ionic serve

I had an ionic 4 beta project of --type=angular that was loading at any path without issue. Periodically, i have been updating my packages by running an npm update and am currently at: "@ionic/angular": "^4.0.2" as well as updated installs for the…
DevMike
  • 1,630
  • 2
  • 19
  • 33
1
vote
3 answers

Why can't I run my laravel app with PHP artisan serve?

I'm working on a laravel app. I made the simple installation of a new laravel app, and in the previous days it was running great. But now I'm not able to access my project in browser after running php artisan serve. The browser just says page not…
Tiago Ramos
  • 21
  • 2
  • 6
1
vote
0 answers

Running React.JS Production Application on CentOS server with forever

Currently I'm working on a website, I've finished most of the site and would like to deploy a production version. My issue is the following: I cannot seem to find a way to run "serve" with forever. I need to use serve to host the site as the site…
James Lock
  • 185
  • 3
  • 10
1
vote
3 answers

laravel php artisan serve command works but localhost url not working in ubuntu 18.10

Login route using localhost/project/public/login url shows error: The requested URL /test/public/login was not found on this server. Apache/2.4.34 (Ubuntu) Server at localhost Port 80 But using php artisan serve command it works perfectly…
Himani Bhatt
  • 41
  • 1
  • 7
1
vote
1 answer

How to get environment variable without process.env

How I can get environment variable without process.env, because it is undefined, due to launched app by npm run serve command. p.s. My app is single Vue page.
Ted
  • 1,682
  • 3
  • 25
  • 52
1
vote
0 answers

"webdev serve" chrome won't show dart source when using https

Trying to test dart app using chrome via https. (using nginx to proxy https port to webdev serve http port). When I visit the app using http, I can see main.dart. When I visit the same app using https, I can see main.dart.js. Is there a way to get…
Ian White
  • 91
  • 1
  • 3
1
vote
2 answers

How to add expires headers in the server?

I'm investigating my website on GTmetrix and currently I'm working on this case: To make it working, I've added this to the .htaccess file which is located on the root of my project: ExpiresActive on # Your document…
stack
  • 10,280
  • 19
  • 65
  • 117
1
vote
1 answer

React: deployment with serve in production mode

I have an reactjs application that I have deploy on my web server. I build my app (So it's create a build folder) and when I want to start it with ~/.npm-packages/bin/serve -s ./build -l tcp://0.0.0.0:8100 it work (with work dir set to react/, build…
Tryliom
  • 895
  • 1
  • 12
  • 37
1
vote
1 answer

react-scripts build then serve is serving html, not the main.js file

I am using react-scripts and successfully ran npm run build to generate the build folder. I then went to serve it locally by using the serve npm package by running serve -s build. serve then runs on port 5000, which is good. When I go to access the…
Nicholas Porter
  • 2,588
  • 2
  • 23
  • 37
1
vote
2 answers

PHP Artisan Serve - Intermittent

Background: New to laravel Developing on the same network as my brother who is also facing this issue Php Artisan Serve loads my development server, but when I click on it, it never actually loads anything it just indefinitely loads the page. It's…
Jack Hayward
  • 163
  • 7
1
vote
1 answer

How can I make a subdomain which points to another server?

I use WHM and cPanle on my server. Here is my domain which works as well: pronexo.net // points to 46.165.242.228 Now I want to make a subdomain which points to another server. So it should be like this: mag.pronexo.net // should point to…
Martin AJ
  • 6,261
  • 8
  • 53
  • 111
1
vote
1 answer

docker npm install serve fails

I'm not very familiar to docker, but I'm trying to put the frontend (written with create-react-app) into the docker container. I've found a tutorial and followed it, so my Dockerfile looks like this: FROM node:7.8.0 ENV NPM_CONFIG_LOGLEVEL…
Daria Peters
  • 111
  • 1
  • 10
1
vote
0 answers

Angular 5 docker nginx reverse proxy trying to be in development mode : ng serve

I have a very basic understanding of nginx and docker. I run 4 containers client/server/mongo/nginx in reverse proxy. This works, however I thought I set the nginx up in development mode, Ie. similar as being in ng serve:4200 to see any changes on…
oudekaas
  • 325
  • 1
  • 6
  • 21
1
vote
1 answer

ng serve issue Cannot find module '@ngtools/json-schema' on mac

On my windows machine i can run ng serve but when i try it on mac i get this error: module.js:544 throw err; ^ Error: Cannot find module '@ngtools/json-schema' at Function.Module._resolveFilename (module.js:542:15) at…
Momen
  • 512
  • 7
  • 20
1
vote
0 answers

httpclient get gives ::ERR_CONNECTION_REFUSED on using ng serve

When I start the development Node server with ng serve. and type in the below address, it works. http://localhost:4200/login However when I type in my username and password it gives me the below error in the console. OPTIONS…
oudekaas
  • 325
  • 1
  • 6
  • 21