Browse Source

url prefix settings to /dew/*

feature-adminDB^2
George 4 years ago
parent
commit
17fdcfae4f
  1. 4
      .env.production
  2. 10
      deploy-to-deep.sh
  3. 1
      package.json
  4. 6
      public/index.html

4
.env.production

@ -0,0 +1,4 @@
REACT_APP_API=http://localhost:48910
REACT_APP_MULTI_API=true
REACT_APP_ROOT_PATH=/dew
REACT_APP_VERSION=$npm_package_version

10
deploy-to-deep.sh

@ -0,0 +1,10 @@
#/usr/bin/sh
rm -r ../systema/webgui
mkdir ../systema/webgui
cp -r ./build/* ../systema/webgui/
cd ../systema/webgui/
git add .
git commit -m "Обновление веб-интерфейса (автоматическое)"
git push
cd ../../dew/

1
package.json

@ -2,6 +2,7 @@
"name": "dew",
"version": "0.1.0",
"private": true,
"homepage": "/dew/",
"dependencies": {
"@blueprintjs/core": "^3.35.0",
"@blueprintjs/select": "^3.14.3",

6
public/index.html

@ -23,10 +23,10 @@
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<link href="node_modules/normalize.css/normalize.css" rel="stylesheet" />
<!-- <link href="node_modules/normalize.css/normalize.css" rel="stylesheet" /> -->
<!-- blueprint-icons.css file must be included alongside blueprint.css! -->
<link href="node_modules/@blueprintjs/icons/lib/css/blueprint-icons.css" rel="stylesheet" />
<link href="../node_modules/@blueprintjs/core/lib/css/blueprint.css" rel="stylesheet" />
<!-- <link href="node_modules/@blueprintjs/icons/lib/css/blueprint-icons.css" rel="stylesheet" /> -->
<!-- <link href="../node_modules/@blueprintjs/core/lib/css/blueprint.css" rel="stylesheet" /> -->
<style>
.bp3-dark {
background-color: #293742;

Loading…
Cancel
Save