Skip to content

Commit 47f96fa

Browse files
committed
fix container example
1 parent f375e8f commit 47f96fa

File tree

6 files changed

+177
-4
lines changed

6 files changed

+177
-4
lines changed

examples/container/my-container/server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from flask import Flask
2+
import os
23

34
DEFAULT_PORT = "8080"
45
MESSAGE = "Hello, World from Scaleway Container !\n"
@@ -14,4 +15,4 @@ def root():
1415
# Scaleway's system will inject a PORT environment variable on which your application should start the server.
1516
port_env = os.getenv("PORT", DEFAULT_PORT)
1617
port = int(port_env)
17-
app.run(debug=True, host="0.0.0.0", port=port)
18+
app.run(debug=True, host="0.0.0.0", port=port)

examples/container/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"license": "ISC",
1111
"dependencies": {},
1212
"devDependencies": {
13-
"serverless-scaleway-functions": "^0.1.6"
13+
"serverless-scaleway-functions": "^0.1.7"
1414
},
1515
"description": ""
1616
}
17-
17+

examples/golang/vendor/github.com/scaleway/scaleway-functions-go/LICENSE

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/golang/vendor/github.com/scaleway/scaleway-functions-go/events/http.go

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/golang/vendor/github.com/scaleway/scaleway-functions-go/lambda/entry.go

Lines changed: 112 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "serverless-scaleway-functions",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"description": "Provider plugin for the Serverless Framework v1.x which adds support for Scaleway Functions.",
55
"main": "index.js",
66
"author": "scaleway.com",

0 commit comments

Comments
 (0)