@wjwjq/release-helper 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.release/doc//351/203/250/347/275/262/346/211/213/345/206/214.md +12 -4
- package/dist/.release/nginx/nginx.conf +1 -1
- package/dist/deploy/pkg/nginx_binary/compile.sh +4 -2
- package/dist/deploy/script/nginx.sh +2 -1
- package/package.json +1 -1
- package/src/.release/doc//351/203/250/347/275/262/346/211/213/345/206/214.md +12 -4
- package/src/.release/nginx/nginx.conf +1 -1
- package/src/deploy/pkg/nginx_binary/compile.sh +4 -2
- package/src/deploy/script/nginx.sh +2 -1
|
@@ -186,18 +186,26 @@ chmod +x upgrade.sh
|
|
|
186
186
|
| 系统静态资源目录 | /opt/$APP_NAME$/assets/ |
|
|
187
187
|
| 系统配置文件 | /opt/$APP_NAME$/assets/settings |
|
|
188
188
|
| system service位置 | /usr/lib/systemd/system/$APP_NAME$.nginx.service |
|
|
189
|
-
| supervisor启动命令 | /usr/sbin/nginx -c /opt/$APP_NAME$/nginx/nginx.conf |
|
|
190
|
-
| systemctl 启动命令 | systemctl start $APP_NAME$.nginx.service |
|
|
191
189
|
|
|
192
190
|
## 4.2 启动命令
|
|
193
191
|
|
|
194
|
-
|
|
192
|
+
### 4.2.1 原始命令
|
|
195
193
|
|
|
196
194
|
```bash
|
|
197
195
|
/usr/sbin/nginx -c /opt/$APP_NAME$/nginx/nginx.conf
|
|
198
196
|
```
|
|
199
197
|
|
|
200
|
-
|
|
198
|
+
### 4.2.2 supervisor
|
|
199
|
+
|
|
200
|
+
需安装时选择 -standalone 模式
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
supervisorctl start $APP_NAME$.nginx
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### 4.2.3 systemctl
|
|
207
|
+
|
|
208
|
+
需安装时选择 -cluster 模式
|
|
201
209
|
|
|
202
210
|
```bash
|
|
203
211
|
systemctl start $APP_NAME$.nginx.service
|
|
@@ -124,7 +124,7 @@ http {
|
|
|
124
124
|
proxy_set_header Host $host;
|
|
125
125
|
proxy_set_header X-Real-IP $remote_addr;
|
|
126
126
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
127
|
-
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
|
|
127
|
+
# proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
|
|
128
128
|
proxy_max_temp_file_size 0;
|
|
129
129
|
proxy_connect_timeout 600;
|
|
130
130
|
proxy_send_timeout 600;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--conf-path=/etc/nginx/nginx.conf \
|
|
7
7
|
--error-log-path=/var/log/nginx/error.log \
|
|
8
8
|
--http-log-path=/var/log/nginx/access.log \
|
|
9
|
-
--pid-path=/var/run/nginx
|
|
9
|
+
--pid-path=/var/run/nginx.pid \
|
|
10
10
|
--lock-path=/var/run/nginx/nginx.lock \
|
|
11
11
|
--with-http_ssl_module \
|
|
12
12
|
--with-http_v2_module \
|
|
@@ -32,6 +32,8 @@ if [[ -z "${ssl_version}" ]]; then
|
|
|
32
32
|
ssl_version="1.0.2"
|
|
33
33
|
fi
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
cd /etc || exit
|
|
36
|
+
|
|
37
|
+
tar -zcvf nginx-"$arch"-ssl"$ssl_version".tar.gz nginx/ -C /root
|
|
36
38
|
|
|
37
39
|
echo "-----------pack at: /root nginx-"$arch"-ssl"$ssl_version".tar.gz--------------"
|
|
@@ -16,7 +16,8 @@ nginx_conf_path="${nginx_conf_install_path}nginx.conf"
|
|
|
16
16
|
# asset_path="$prefix/opt/posidon-frontend/"
|
|
17
17
|
nginx_log_path="/var/log/nginx"
|
|
18
18
|
nginx_log_file="${app_name}.nginx.log"
|
|
19
|
-
|
|
19
|
+
#不放在var/run 是因为重启后 var/run/下面的文件及目录会被清除
|
|
20
|
+
nginx_pid_dir="/var/log/nginx/"
|
|
20
21
|
nginx_pid_file_path="$nginx_pid_dir${app_name}.nginx.pid"
|
|
21
22
|
|
|
22
23
|
conf_version=$(awk '{print $1}' "${pkg_path}"/version)
|
package/package.json
CHANGED
|
@@ -186,18 +186,26 @@ chmod +x upgrade.sh
|
|
|
186
186
|
| 系统静态资源目录 | /opt/$APP_NAME$/assets/ |
|
|
187
187
|
| 系统配置文件 | /opt/$APP_NAME$/assets/settings |
|
|
188
188
|
| system service位置 | /usr/lib/systemd/system/$APP_NAME$.nginx.service |
|
|
189
|
-
| supervisor启动命令 | /usr/sbin/nginx -c /opt/$APP_NAME$/nginx/nginx.conf |
|
|
190
|
-
| systemctl 启动命令 | systemctl start $APP_NAME$.nginx.service |
|
|
191
189
|
|
|
192
190
|
## 4.2 启动命令
|
|
193
191
|
|
|
194
|
-
|
|
192
|
+
### 4.2.1 原始命令
|
|
195
193
|
|
|
196
194
|
```bash
|
|
197
195
|
/usr/sbin/nginx -c /opt/$APP_NAME$/nginx/nginx.conf
|
|
198
196
|
```
|
|
199
197
|
|
|
200
|
-
|
|
198
|
+
### 4.2.2 supervisor
|
|
199
|
+
|
|
200
|
+
需安装时选择 -standalone 模式
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
supervisorctl start $APP_NAME$.nginx
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### 4.2.3 systemctl
|
|
207
|
+
|
|
208
|
+
需安装时选择 -cluster 模式
|
|
201
209
|
|
|
202
210
|
```bash
|
|
203
211
|
systemctl start $APP_NAME$.nginx.service
|
|
@@ -124,7 +124,7 @@ http {
|
|
|
124
124
|
proxy_set_header Host $host;
|
|
125
125
|
proxy_set_header X-Real-IP $remote_addr;
|
|
126
126
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
127
|
-
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
|
|
127
|
+
# proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
|
|
128
128
|
proxy_max_temp_file_size 0;
|
|
129
129
|
proxy_connect_timeout 600;
|
|
130
130
|
proxy_send_timeout 600;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--conf-path=/etc/nginx/nginx.conf \
|
|
7
7
|
--error-log-path=/var/log/nginx/error.log \
|
|
8
8
|
--http-log-path=/var/log/nginx/access.log \
|
|
9
|
-
--pid-path=/var/run/nginx
|
|
9
|
+
--pid-path=/var/run/nginx.pid \
|
|
10
10
|
--lock-path=/var/run/nginx/nginx.lock \
|
|
11
11
|
--with-http_ssl_module \
|
|
12
12
|
--with-http_v2_module \
|
|
@@ -32,6 +32,8 @@ if [[ -z "${ssl_version}" ]]; then
|
|
|
32
32
|
ssl_version="1.0.2"
|
|
33
33
|
fi
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
cd /etc || exit
|
|
36
|
+
|
|
37
|
+
tar -zcvf nginx-"$arch"-ssl"$ssl_version".tar.gz nginx/ -C /root
|
|
36
38
|
|
|
37
39
|
echo "-----------pack at: /root nginx-"$arch"-ssl"$ssl_version".tar.gz--------------"
|
|
@@ -16,7 +16,8 @@ nginx_conf_path="${nginx_conf_install_path}nginx.conf"
|
|
|
16
16
|
# asset_path="$prefix/opt/posidon-frontend/"
|
|
17
17
|
nginx_log_path="/var/log/nginx"
|
|
18
18
|
nginx_log_file="${app_name}.nginx.log"
|
|
19
|
-
|
|
19
|
+
#不放在var/run 是因为重启后 var/run/下面的文件及目录会被清除
|
|
20
|
+
nginx_pid_dir="/var/log/nginx/"
|
|
20
21
|
nginx_pid_file_path="$nginx_pid_dir${app_name}.nginx.pid"
|
|
21
22
|
|
|
22
23
|
conf_version=$(awk '{print $1}' "${pkg_path}"/version)
|