Skip to content

Commit 1ae010b

Browse files
authored
Merge pull request #197 from devsapp/fastify
Fix nginx demo issue
2 parents 9eaab30 + 2fb3951 commit 1ae010b

File tree

11 files changed

+12
-13
lines changed

11 files changed

+12
-13
lines changed

web-framework/nginx-reverse-proxy/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Edition: 3.0.0
22
Type: Project
33
Name: nginx-reverse-proxy
4-
Version: 0.0.8
4+
Version: 0.0.9
55
Provider:
66
- 阿里云
77
Description: 本案例快速部署一个 Nginx 项目到阿里云函数计算 FC。
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env bash
22

3-
sed -i 's\${PROXY_PASS}\'$PROXY_PASS'\g' ./nginx.conf
4-
nginx -c /code/nginx.conf -g "daemon off;"
5-
3+
sed -i 's\${PROXY_PASS}\'$PROXY_PASS'\g' ./nginx.conf
4+
/opt/bin/nginx -c /code/nginx.conf -g "daemon off;"

web-framework/nginx/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Edition: 3.0.0
22
Type: Project
33
Name: start-nginx-v3
4-
Version: 0.0.12
4+
Version: 0.0.13
55
Provider:
66
- 阿里云
77
Description: 本案例快速部署一个 Nginx 项目到阿里云函数计算 FC。

web-framework/nginx/src/code/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nginx -c /code/nginx.conf -g 'daemon off;'
1+
# /opt/bin/nginx -c /code/nginx.conf -g 'daemon off;'
22

33
events { worker_connections 1024; }
44
http {

web-framework/nginx/src/s.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ resources:
2424
instanceConcurrency: 100
2525
customRuntimeConfig:
2626
command:
27-
- nginx
27+
- "/opt/bin/nginx"
2828
- "-c"
2929
- "/code/nginx.conf"
3030
- "-g"

web-framework/nodejs/express/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Edition: 3.0.0
22
Type: Project
33
Name: start-express-v3
4-
Version: 0.0.14
4+
Version: 0.0.15
55
Provider:
66
- 阿里云
77
Description: 本案例是将 Express 框架,这一基于 Node.js 平台的极简且灵活的 web 应用开发框架,快速创建并部署到阿里云函数计算 FC 。

web-framework/nodejs/express/src/code/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ app.all("/*", (req, res) => {
1515
res.send(
1616
JSON.stringify({
1717
msg: "Hello, World! ",
18-
reqeust: {
18+
request: {
1919
query: req.query,
2020
path: req.originalUrl,
2121
data: req.body,

web-framework/nodejs/fastify/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Edition: 3.0.0
22
Type: Project
33
Name: start-fastify-v3
4-
Version: 0.0.1
4+
Version: 0.0.2
55
Provider:
66
- 阿里云
77
Description: 本案例是将 Fastify 框架,这一基于 Node.js 平台的极简且灵活的 web 应用开发框架,快速创建并部署到阿里云函数计算 FC 。

web-framework/nodejs/fastify/src/code/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fastify.all("/*", {}, async function (request, reply) {
1818
.header("my-custom-header", "hello")
1919
.send({
2020
msg: "Hello, World! ",
21-
reqeust: {
21+
request: {
2222
query: request.query,
2323
path: request.url,
2424
data: request.body,

web-framework/python/flask/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Type: Project
33
Name: start-flask-v3
44
Provider:
55
- 阿里云
6-
Version: 0.0.15
6+
Version: 0.0.16
77
Description: 本案例将Flask框架,这一非常受欢迎的Python Web框架,快捷创建并部署到阿里云函数计算 FC。
88
HomePage: https://github.com/devsapp/start-web-framework
99
Organization: 阿里云函数计算(FC)

web-framework/python/flask/src/code/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def hello_world(path):
1313
response = jsonify(
1414
{
1515
"msg": "Hello, World!" + " at " + arrow.now().format("YYYY-MM-DD HH:mm:ss"),
16-
"reqeust": {
16+
"request": {
1717
"query": str(request.query_string, "utf-8"),
1818
"path": path,
1919
"data": str(request.stream.read(), "utf-8"),

0 commit comments

Comments
 (0)