Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
e148564f
Commit
e148564f
authored
Dec 09, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: 添加部署文档,部署脚本
parent
a2a435d4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
1 deletion
+55
-1
README.md
README.md
+49
-1
deploy_172.sh
deploy_172.sh
+6
-0
No files found.
README.md
View file @
e148564f
...
...
@@ -9,7 +9,55 @@
[
gitlab
](
https://gitlab.33.cn/chenqikuai/fns_front_2
)
# 打包部署
## 普通打包
npm run build
## 提供ios app审核的打包
## 提供 ios app 审核的打包
npm run buildReview
```
conf
server
{
listen
2048
;
charset
utf
-
8
;
gzip
on
;
gzip_min_length
1
k
;
gzip_buffers
4
16
k
;
gzip_comp_level
2
;
gzip_types
text
/
plain
application
/
x
-
javascript
application
/
javascript
text
/
css
application
/
xml
text
/
javascript
application
/
x
-
httpd
-
php
image
/
jpeg
image
/
gif
image
/
png
;
gzip_disable
"MSIE [1-6]\."
;
location
/ {
root
/
usr
/
share
/
nginx
/
html
/
fns_front
;
try_files
$
uri
$
uri
/
index
.
html
;
}
location
/
proxyApi
/ {
proxy_pass
http
://
172
.
16
.
102
.
150
:
8091
/;
# proxy_pass https://www.puhuijr.net/proxyApi/;
}
location
/
proxyWs
{
rewrite
^/
proxyWs
/(.*) /$
1
break
;
proxy_pass
http
://
172
.
16
.
101
.
107
:
8888
;
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_http_version
1
.
1
;
proxy_set_header
Upgrade
$
http_upgrade
;
proxy_set_header
Connection
"Upgrade"
;
}
location
~ /
clear
(/.*) {
allow
192
.
168
.
0
.
0
/
24
;
auth_basic
"Secret"
;
auth_basic_user_file
/
etc
/
nginx
/
conf
.
d
/
passwd
;
proxy_cache_purge
cache_nginx
$
host
$
1
$
is_args
$
args
;
}
}
```
deploy_172.sh
0 → 100644
View file @
e148564f
tar
-czf
fns_front.tar fns_front
scp fns_front.tar yx@172.16.101.129:/usr/share/nginx/html/fns_front.tar
rm
-rf
fns_front.tar
ssh yx@172.16.101.129
'cd /usr/share/nginx/html && rm -rf fns_front && tar -xzf fns_front.tar && rm -rf fns_front.tar'
echo
'👉 http://172.16.101.129:2048/'
\ No newline at end of file
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