mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Update README.md
This commit is contained in:
parent
63f15f6741
commit
cfc52f91f5
@ -14,7 +14,7 @@ layout: Doc
|
||||
Make sure `serverless` is installed.
|
||||
|
||||
## 1. Create a service
|
||||
`serverless create --template spotinst-nodejs --path serviceName` `serviceName` is going to be a new directory there the JavaScript template will be loaded. Once the download is complete change into that directory. Next you will need to install the Spotinst Serverless Functions plugin by running `npm install` in the root directory. You will need to go into the serverless.yml file and add in the environment variable that you want to deploy into.
|
||||
`serverless create --template spotinst-nodejs --path serviceName` `serviceName` is going to be a new directory where the JavaScript template will be loaded. Once the download is complete change into that directory. Next you will need to install the Spotinst Serverless Functions plugin by running `npm install` in the root directory. You will need to go into the serverless.yml file and add in the environment variable that you want to deploy into.
|
||||
|
||||
## 2. Deploy
|
||||
```bash
|
||||
@ -42,4 +42,4 @@ Congrats you have just deployed and ran your Hello World function!
|
||||
|
||||
`-t` is short hand for `--template`
|
||||
|
||||
`-p` is short hang for `--path`
|
||||
`-p` is short hang for `--path`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user