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
2
votes
1 answer

nginx to serve static file but instead when i go to the route it downloads the .html

I am trying to serve a health status page for a particular route in my nginx configuration. I have a docker file that copies the html into the correct location and have confirmed it was there. But when I navigate to the route /en/health then i do…
RyanP13
  • 7,413
  • 27
  • 96
  • 166
2
votes
0 answers

Angular recompile with Docker very slow after updating from Angular 11 to Angular 12

I tried a lot of stuff the last days and am very very thankful, if you could point me in the right direction on what I could try next. My current status: I have a running Angular application that is served via docker-compose with a bunch of other…
Tom
  • 89
  • 6
2
votes
2 answers

Problem in specifying a path in a websocket server URL

I want to add a path to the end of the URL of websocket server, but it does not work. For example ws://111.111.11.111:8080/websocket. I want to add URL path /websocket after the port number like this. How do I do it? First I tested, on the client…
Ky P
  • 31
  • 3
2
votes
1 answer

Angular console logs only from main.js:1 and polyfills.js:1

I'm building a new angular app and anywhere I do console.log's it comes from main.js:1 or polyfills.js:1 and not from the proper component. I tried to add main.js and polyfills.js to Ignore list in the dev tools settings but it doesn't work…
Symlis
  • 101
  • 1
  • 8
2
votes
3 answers

How can I serve a static file using Koa?

I want to implement universal links in my project and I need to serve a json via Koa, which is a static file named apple-app-site-association. My file is located in /assets/apple-app-site-association/apple-app-site-association folder. My concern is…
Gina
  • 73
  • 2
  • 9
2
votes
1 answer

Error running process with Symfony on php server

I developed an API in php with washable to run an algorithm in C ++ with opencv. The application sends a photo to the server, which in turn starts an .exe file responsible for processing this image. When executing the file via terminal, the…
Carlos Diego
  • 348
  • 5
  • 20
2
votes
1 answer

React build for static server gives 404 error

I have a React app which runs fine locally but when I try to build it on the static Node server serve (npm serve) using serve -s build the server returns a 404 The requested path could not be found page. My understanding is the issue has to do with…
ponder275
  • 903
  • 2
  • 12
  • 33
2
votes
2 answers

How to rewrite route with NPM serve

Hello I'm using the serve npm package. I am trying to serve static files on a different route. Let's say I have the following directory structure that I'm trying to serve: index.html index.js helpers helper.js I'm trying to serve it on a…
thisguy
  • 63
  • 6
2
votes
1 answer

PhpStorm: run php artisan serve Undefined index: REQUEST_URI

I want to use php artisan serve as a Run Configuration in PhpStorm and already set it up like here. When I run the command / configuration (?), the server seems to start but then is instantly stopped. This is my console…
TaskPlays
  • 31
  • 5
2
votes
1 answer

How to make bokeh server work with __name__ == "__main__"

I want to use python code for Bokeh server and use it as library as well. So I modularize my code by _name_=='__main__', but standalone Bokeh server is not getting triggered. def initialize_WatchDataFrame(): print("Initialize Watchlist") if…
Pushkar
  • 61
  • 4
2
votes
1 answer

How to run django and angularJS into a single development server?

I have a project where I am using Angular js to consume the API that I built with Django-Framework. Currently I have to start up the django api using django development server e.g., python manage.py runserver 192.168.0.185:8080' and then I have to…
user11327631
2
votes
0 answers

Routing issue while running production build on localhost

I am developing a react application using create-react-app, react-router V4.3.1. When I do npm start the development server runs fine and on subsequent code change the page auto reloads and I can traverse to different route paths where I am…
Shantanu Tomar
  • 1,572
  • 7
  • 38
  • 64
2
votes
1 answer

How to set content-type for request.response in Dart Server?

I set my dart server as shown below. I can sent data from Flutter Mobile app and receive back from Dart Server. If the request method is GET in dart Server I connect to tcp socket a get some data. the data I need to send to Flutter app must be in…
Nick
  • 4,163
  • 13
  • 38
  • 63
2
votes
1 answer

How to serve react-create-app build with nginx on server without domain name (only IP)?

I am asking for how to configure nginx. For now i tried some variations and stack on this: server { listen 80 default_server; listen [::]:80 default_server; root /srv/appfolder/build; index index.html; server_name…
Tyler Brin
  • 59
  • 1
  • 4
2
votes
3 answers

angular.json not found when trying to ng serve

I have an angular program and when I go to cmd and try to run it with ng serve, it gives me this message. I tried to solve it in some ways i found on stack overflow but none of them work It showed me this error: Local workspace file…
user2442818
  • 21
  • 1
  • 2