Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄庭坚
jinfa-platform
Commits
fe34ef88
Commit
fe34ef88
authored
Dec 14, 2020
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: 新增demo环境
parent
08ffa5d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
env.js
env.js
+23
-0
package.json
package.json
+1
-0
No files found.
env.js
View file @
fe34ef88
...
@@ -2,6 +2,29 @@
...
@@ -2,6 +2,29 @@
const
path
=
require
(
'path'
)
const
path
=
require
(
'path'
)
module
.
exports
=
{
module
.
exports
=
{
all
:
{
SITE_ID
:
'1'
,
BACK_GATEWAY
:
'http://lingxi-all.wg.shushangyun.com'
,
USE_ROUTE_CONFIG
:
false
,
SOCKET_URL
:
'ws://lingxi-all.wg.shushangyun.com'
,
ssh
:
JSON
.
stringify
({
user
:
"www"
,
// Password optional, prompted if none given
password
:
"!@#project_$%^231(1)wwwuser3"
,
host
:
"119.23.219.65"
,
port
:
8122
,
localRoot
:
path
.
resolve
(
'./dist/'
),
remoteRoot
:
"/usr/local/nginx/html/lingxi/yanshi/api/all/web/dist/"
,
// include: ["*", "**/*"], // this would upload everything except dot files
include
:
[
"*"
],
// e.g. exclude sourcemaps, and ALL files in node_modules (including dot files)
// exclude: ["dist/**/*.map", "node_modules/**", "node_modules/**/.*", ".git/**"],
// delete ALL existing files at destination before uploading, if true
deleteRemote
:
true
,
// Passive mode is forced (EPSV command is not sent)
forcePasv
:
true
})
},
scm
:
{
scm
:
{
SITE_ID
:
'1'
,
SITE_ID
:
'1'
,
BACK_GATEWAY
:
'http://lingxi-scm.wg.shushangyun.com'
,
BACK_GATEWAY
:
'http://lingxi-scm.wg.shushangyun.com'
,
...
...
package.json
View file @
fe34ef88
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
"build:dev"
:
"pm2 start scripts/devServer.js"
,
"build:dev"
:
"pm2 start scripts/devServer.js"
,
"build:clean"
:
"cross-env NODE_OPTIONS=--max_old_space_size=4096 umi build"
,
"build:clean"
:
"cross-env NODE_OPTIONS=--max_old_space_size=4096 umi build"
,
"build:scm"
:
"cross-env SITE_ID=1 BACK_GATEWAY=http://lingxi-scm.wg.shushangyun.com USE_ROUTE_CONFIG=false SOCKET_URL=ws://lingxi-scm.wg.shushangyun.com yarn build"
,
"build:scm"
:
"cross-env SITE_ID=1 BACK_GATEWAY=http://lingxi-scm.wg.shushangyun.com USE_ROUTE_CONFIG=false SOCKET_URL=ws://lingxi-scm.wg.shushangyun.com yarn build"
,
"build:all"
:
"cross-env SITE_ID=1 BACK_GATEWAY=http://lingxi-all.wg.shushangyun.com USE_ROUTE_CONFIG=false SOCKET_URL=ws://lingxi-all.wg.shushangyun.com yarn build"
,
"build:10"
:
"cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.0.10:8100 USE_ROUTE_CONFIG=false SOCKET_URL=ws://10.0.0.10:9400 yarn build"
,
"build:10"
:
"cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.0.10:8100 USE_ROUTE_CONFIG=false SOCKET_URL=ws://10.0.0.10:9400 yarn build"
,
"postinstall"
:
"umi generate tmp"
,
"postinstall"
:
"umi generate tmp"
,
"prettier"
:
"prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'"
,
"prettier"
:
"prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment