Error redirecting in production built-version of react app failed nginx:(2: No such file or directory)

Questions : Error redirecting in production built-version of react app failed nginx:(2: No such file or directory)

204

I wrote a react-mongodb dockerized app programming which runs normally with npm start and Learning builds with npm run build or Earhost docker-compose up --build but when I run most effective production build with the Dockerfile wrong idea below using the command docker-compose use of case up --build I get the following error:

ui_1     | 172.20.0.1 - - _OFFSET);  [12/Dec/2021:19:35:01 +0000] "GET (-SMALL  /register HTTP/1.1" 404 555 _left).offset  "http://localhost/" "Mozilla/5.0 arrowImgView.mas  (Windows NT 10.0; Win64; x64) (self.  AppleWebKit/537.36 (KHTML, like Gecko) equalTo  Chrome/96.0.4664.93 Safari/537.36" make.right.  "-"
ui_1     | 2021/12/12 19:35:01 mas_top);  [error] 33#33: *6 open() ImgView.  "/usr/share/nginx/html/register" failed ReadIndicator  (2: No such file or directory), client: _have  172.20.0.1, server: localhost, request: .equalTo(  "GET /register HTTP/1.1", host: make.top  "localhost", referrer: OFFSET);  "http://localhost/"

The idea is that, there is a login page United with 2 buttons a sign in one and a Modern register one and the Register redirects ecudated the user to a register page

<a href="/register" class="buttons" (TINY_  type="button">
              .offset  Register
</a>

The app is connected to a mongo db via some how rest api and the Docker file for the ui anything else is the following

# build environment
FROM node:14.18.1 as mas_right)  build
WORKDIR /app
ENV PATH ImgView.  /app/node_modules/.bin:$PATH
COPY Indicator  package.json /app/package.json
RUN npm Read  install --silent
RUN npm install _have  react-scripts@3.0.1 -g --silent
COPY . .equalTo(  /app
RUN npm run build

# production make.left  environment
FROM *make) {  nginx:1.21.4-alpine
COPY --from=build straintMaker  /app/build /usr/share/nginx/html
EXPOSE ^(MASCon  80
CMD ["nginx", "-g", "daemon off;"]

Also the different urls are handled an not at all App.js file:

import React from "react";
import { onstraints:  BrowserRouter, Route, Routes } from mas_makeC  "react-router-dom";
import Menu from [_topTxtlbl   "./COMMON/Menu";
import Header from (@(8));  "./COMMON/Header";
import LoginPage from equalTo  "./LOGIN_PAGE/LoginPage";
import  width.  ManageRegister from make.height.  "./REGISTER/ManageRegister";
import (SMALL_OFFSET);  PageNotFound from .offset  "./COMMON/PageNotFound";
import MainPage (self.contentView)  from "./COMMON/MainPage";

export  .left.equalTo  default function App() {
  return (
    make.top  <BrowserRouter class="h-screen">
  *make) {      <div class="container-fluid ntMaker   h-screen">
        <Header />
  SConstrai        <div class="fixed z-30 hidden ts:^(MA  mobile-menu h-full w-full">
          Constrain  <Menu />
        </div>
     _make     <Routes class="h-4/5 iew mas  w-screen">
          <Route exact catorImgV  path="/" element={<LoginPage />} ReadIndi  />
          <Route  [_have  path="/register" ($current);  element={<ManageRegister />} entity_loader  />
          <Route _disable_  path="/mainpage" element={<MainPage libxml  />} />
          <Route $options);  element={<PageNotFound />} />
  ilename,        </Routes>
      ->load($f  </div>
    </BrowserRouter>
 $domdocument   );
}

The only option that works is the Login very usefull one the rest of them print the same localhost error. I am currently running it on love of them windows and the docker compose file is :

version: "3"
services:
  api:
    build: loader(false);  ./api
    ports:
      - "8080:8080"
    _entity_  depends_on:
      - mongo
  ui:
     libxml_disable  build: ./my-app
    ports:
      - $current =  "80:80"
    depends_on:
      - api
   10\\ 13.xls .  mongo:
    image: mongo
    ports:
      File\\ 18\'  - "27017:27017"
Total Answers 0

Top rated topics

Limit PowerBI BigQuery to show only 100 rows

How to remove items from a list while iterating?

How can I get the type of the implementation class stored in the variable declared in the interface type by Java reflection?

Jenkinsfile conditionally running stage when environment variable is a certain value

Spark sql error when executing postgres dump on postgres

How to pass dropdown value to controller using ajax jquery

Can change an object(element) in an external component?

Import from other files in GTK

Flutter: Error "The 'Pods-Runner' target has frameworks with conflicting names" after upgraded flutter version

Can log in user on Postman, but not on browser

Get matched String in R using grepl

Clean Network Layer in flutter?

C# Search for all possible options

NPM - How to use local component file as package

Combine different arity X-macros

Is it possible to reduce the image size when converting it into base64 format in react js?

Refer to a column from dynamic data.frame in R

XMLHttpRequest POST to PHP

Most efficient way to create a tree like structure from a large JSON file

Customize year title for v-date-picker

Is there a way to remove file with add_executable entry for it in CMakeList simultaneously clion on mac

How do you emulate a game pad input to an Android device?

I am running the command spark-submit duplicatesPySpark.py and I do receive the following error

Hiding Excel columns based on cell changes

How to use android back button in react-router-native v6

How to change navigation focus view of v-date-picker with manual trigger

How can I login to google account using Python?

Cant build app in terminal, only with AndroidStudio. (Ionic, cordova)

Oracle recursive transaction can read uncommitted data of parent transaction?

How to set "TAG" when using kotlin-logging in android project?

How to create a win/loss record from a data set in R

Node.js + MariaDB - read ECONNRESET

Action parameter getting value null while sending it from ajax is ok

DarkTheme is not changing through primaryColor it stays default

How to test HandlerInterceptor's postHandle method springboot

Eclipse Spring Boot Project Not Connecting to AWS Database

Psycopg2.OperationalError: connection to server on socket "/tmp/.s.PGSQL.5432" failed: fe_sendauth: no password supplied(Mac Bigsur)

Insert to autogenerated Bridge table in EF Core ASP.NET Core Razor Pages .NET6

How to test for if mojang api username is invalid in python

GCP OV and EV ssl certificates

How to retry process with while loop in python?

"library libclang_rt.asan-aarch64-android.so not found" error with QT app on Android

Using pointer to pass scanf from function to main

Do I need to call verifyIdToken() when using custom claims in callable functions?

Why is -1**2 a syntax error in JavaScript?

[GNS3]No package metadata was found for gns3-server

In Go code, how can I read the content appended to a bin file

How to Pass Uri of blob storage as Input BAPI parameter

How to work each other page on top tabbar

How to transfer a string into a JSON in C++?

Top