mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Updated docs for cli flag changes.
This commit is contained in:
@@ -6,7 +6,7 @@ This is an example of an [asynchronous function](/docs/async.md).
|
||||
|
||||
```sh
|
||||
# Initialize your function creating a func.yaml file
|
||||
fn init --type async <DOCKERHUB_USERNAME>/hello-go-async
|
||||
fn init --type async --name hello-go-async
|
||||
|
||||
# Test your function. This will run inside a container exactly how it will on the server
|
||||
fn run
|
||||
@@ -16,7 +16,7 @@ cat sample.payload.json | fn run
|
||||
|
||||
# Deploy your functions to the Oracle Functions server (default localhost:8080)
|
||||
# This will create a route to your function as well
|
||||
fn deploy myapp
|
||||
fn deploy --app myapp
|
||||
```
|
||||
|
||||
### Now call your function:
|
||||
|
||||
@@ -6,7 +6,7 @@ This example will show you how to test and deploy Go (Golang) code to Oracle Fun
|
||||
|
||||
```sh
|
||||
# Initialize your function creating a func.yaml file
|
||||
fn init <DOCKERHUB_USERNAME>/hello-go
|
||||
fn init --name hello-go
|
||||
|
||||
# Test your function. This will run inside a container exactly how it will on the server
|
||||
fn run
|
||||
@@ -16,7 +16,7 @@ cat sample.payload.json | fn run
|
||||
|
||||
# Deploy your functions to the Oracle Functions server (default localhost:8080)
|
||||
# This will create a route to your function as well
|
||||
fn deploy myapp
|
||||
fn deploy --app myapp
|
||||
```
|
||||
|
||||
### Now call your function:
|
||||
|
||||
@@ -9,7 +9,7 @@ This example will show you how to test and deploy Go (Golang) code with vendored
|
||||
glide install -v #Or what ever vendor tool you want. We have a glide.yaml for you here already.
|
||||
|
||||
# Initialize your function creating a func.yaml file
|
||||
fn init <DOCKERHUB_USERNAME>/hello-go
|
||||
fn init --name hello-go
|
||||
|
||||
# Test your function. This will run inside a container exactly how it will on the server
|
||||
fn run
|
||||
@@ -19,7 +19,7 @@ cat sample.payload.json | fn run
|
||||
|
||||
# Deploy your functions to the Oracle Functions server (default localhost:8080)
|
||||
# This will create a route to your function as well
|
||||
fn deploy myapp
|
||||
fn deploy --app myapp
|
||||
```
|
||||
|
||||
### Now call your function:
|
||||
|
||||
@@ -5,7 +5,7 @@ This example will show you how to test and deploy Java code to Oracle Functions.
|
||||
|
||||
```sh
|
||||
# Initialize your function creating a func.yaml file
|
||||
fn init hello-java --runtime java
|
||||
fn init --name hello-java --runtime java
|
||||
|
||||
# Test your function. This will run inside a container exactly how it will on the server
|
||||
fn run
|
||||
@@ -15,7 +15,7 @@ echo "Michael FassBender" | fn run
|
||||
|
||||
# Deploy your functions to the Oracle Functions server (default localhost:8080)
|
||||
# This will create a route to your function as well
|
||||
fn deploy myapp
|
||||
fn deploy --app myapp
|
||||
```
|
||||
|
||||
### Now call your function:
|
||||
|
||||
@@ -6,7 +6,7 @@ This example will show you how to test and deploy Node code to Oracle Functions.
|
||||
|
||||
```sh
|
||||
# Initialize your function creating a func.yaml file
|
||||
fn init <DOCKERHUB_USERNAME>/hello-node
|
||||
fn init --name hello-node
|
||||
|
||||
# Test your function.
|
||||
# This will run inside a container exactly how it will on the server. It will also install and vendor dependencies from Gemfile
|
||||
@@ -17,7 +17,7 @@ cat sample.payload.json | fn run
|
||||
|
||||
# Deploy your functions to the Oracle Functions server (default localhost:8080)
|
||||
# This will create a route to your function as well
|
||||
fn deploy myapp
|
||||
fn deploy --app myapp
|
||||
```
|
||||
### Now call your function:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ This example will show you how to test and deploy PHP code to Oracle Functions.
|
||||
|
||||
```sh
|
||||
# Initialize your function creating a func.yaml file
|
||||
fn init <DOCKERHUB_USERNAME>/hello-php
|
||||
fn init --name hello-php
|
||||
|
||||
# Test your function.
|
||||
# This will run inside a container exactly how it will on the server. It will also install and vendor dependencies from Gemfile
|
||||
@@ -17,7 +17,7 @@ cat sample.payload.json | fn run
|
||||
|
||||
# Deploy your functions to the Oracle Functions server (default localhost:8080)
|
||||
# This will create a route to your function as well
|
||||
fn deploy myapp
|
||||
fn deploy --app myapp
|
||||
```
|
||||
### Now call your function:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ This example will show you how to test and deploy Python code to Oracle Function
|
||||
|
||||
```sh
|
||||
# Initialize your function creating a func.yaml file
|
||||
fn init <DOCKERHUB_USERNAME>/hello-python
|
||||
fn init --name hello-python
|
||||
|
||||
# Test your function.
|
||||
# This will run inside a container exactly how it will on the server. It will also install and vendor dependencies from Gemfile
|
||||
@@ -17,7 +17,7 @@ cat sample.payload.json | fn run
|
||||
|
||||
# Deploy your functions to the Oracle Functions server (default localhost:8080)
|
||||
# This will create a route to your function as well
|
||||
fn deploy myapp
|
||||
fn deploy --app myapp
|
||||
```
|
||||
### Now call your function:
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ This example will show you how to test and deploy Ruby code to Oracle Functions.
|
||||
|
||||
```sh
|
||||
# Initialize your function creating a func.yaml file
|
||||
fn init <DOCKERHUB_USERNAME>/hello-ruby
|
||||
fn init --name hello-ruby
|
||||
|
||||
# Test your function.
|
||||
# This will run inside a container exactly how it will on the server. It will also install and vendor dependencies from Gemfile
|
||||
@@ -17,7 +17,7 @@ cat sample.payload.json | fn run
|
||||
|
||||
# Deploy your functions to the Oracle Functions server (default localhost:8080)
|
||||
# This will create a route to your function as well
|
||||
fn deploy myapp
|
||||
fn deploy --app myapp
|
||||
```
|
||||
### Now call your function:
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ fn main() {
|
||||
|
||||
```sh
|
||||
# Initialize your function creating a func.yaml file
|
||||
fn init <DOCKERHUB_USERNAME>/hello-rust
|
||||
fn init --name hello-rust
|
||||
|
||||
# Test your function. This will run inside a container exactly how it will on the server
|
||||
fn run
|
||||
@@ -44,7 +44,7 @@ cat sample.payload.json | fn run
|
||||
|
||||
# Deploy your functions to the Oracle Functions server (default localhost:8080)
|
||||
# This will create a route to your function as well
|
||||
fn deploy myapp
|
||||
fn deploy --app myapp
|
||||
```
|
||||
### Now call your function:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user