Compare commits
4 commits
bab0f6bce5
...
b335a471cb
Author | SHA1 | Date | |
---|---|---|---|
b335a471cb | |||
ccd53bc2a1 | |||
07e83e2f00 | |||
d72367ccaa |
7 changed files with 13 additions and 15 deletions
|
@ -8,8 +8,6 @@ services:
|
|||
backend-prod:
|
||||
image: caminsha/bt-backend
|
||||
container_name: backend_bt
|
||||
ports:
|
||||
- 5000:5000
|
||||
environment:
|
||||
DEBUG: "no"
|
||||
PORT: 5000
|
||||
|
|
|
@ -1,15 +1,19 @@
|
|||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
# to redirect all the requests to index.html,
|
||||
# useful when you are using react-router
|
||||
try_files $uri /index.html;
|
||||
proxy_pass http://localhost:5000
|
||||
}
|
||||
|
||||
location /api {
|
||||
# include uwsgi_params;
|
||||
# uwsgi_pass http://backend-prod:5000;
|
||||
proxy_pass http://backend-prod:5000;
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
import React, { useEffect } from "react";
|
||||
import React, { useEffect, useState} from "react";
|
||||
import "../../App.css";
|
||||
import Footer from "../../Footer";
|
||||
import { Logger } from "@behametrics/logger-web";
|
||||
import { useAuth } from "../../auth/AuthProvider";
|
||||
import InputField from "../InputField";
|
||||
import { useState } from "react/cjs/react.development";
|
||||
import SubmitField from "../SubmitField";
|
||||
|
||||
export default function BehaviorNormal() {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import React from "react";
|
||||
import { useState } from "react/cjs/react.development";
|
||||
import React, {useState} from "react";
|
||||
import "../../App.css";
|
||||
import Footer from "../../Footer";
|
||||
import InputField from "../InputField";
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import React from "react";
|
||||
import { useState } from "react/cjs/react.development";
|
||||
import React, {useState} from "react";
|
||||
import "../../App.css";
|
||||
import Footer from "../../Footer";
|
||||
import InputField from "../InputField";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { useEffect, useState } from "react/cjs/react.development";
|
||||
import { useEffect, useState } from "react";
|
||||
import { authFetch } from "../../auth/AuthProvider.js";
|
||||
|
||||
function Secret() {
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import React from "react";
|
||||
import { useState } from "react/cjs/react.development";
|
||||
import React, {useState} from "react";
|
||||
import "../../App.css";
|
||||
import "../Input.css";
|
||||
import Footer from "../../Footer";
|
||||
|
|
Loading…
Reference in a new issue