Comments (4)
@hellojuly 可以通过 --inputs
参数覆盖 serverless.yml 中的配置
例如你希望部署到 ap-shanghai 可以使用如下命令:
sls deploy --inputs region=ap-shanghai
文档:https://cn.serverless.com/framework/docs-commands-deploy
from serverless-tencent.
感谢@timqian, --inputs
参数覆盖region能够生效。
但似乎--inputs
不能和--target
共用,如果一起使用将导致.env内配置被忽略。
例如:
sls deploy --target=.serverless --inputs region=ap-shanghai
将提示进行临时扫码授权
如果替换为
cd .serverless
sls deploy --inputs region=ap-shanghai
则能够正常读取.env。
from serverless-tencent.
@hellojuly 相关内容已经发布,现在 target 可以正确读取到指定目录的 .env 配置
from serverless-tencent.
收到,大佬辛苦了☕️ @ole3021
from serverless-tencent.
Related Issues (20)
- 使用serverless平台创建nest应用出错 HOT 3
- 脚手架总是卡在登陆这里 HOT 3
- 希望sls deploy能够支持http代理 HOT 4
- 部署出现错误时 exitcode仍为0 HOT 3
- 网页控制台创建express示例失败 HOT 3
- jenkins 执行 sls deploy 失败 HOT 15
- github workflows执行sls deploy没有成功 HOT 1
- 腾讯云 Serverless 快速部署模板问题 HOT 2
- flask模板问题 HOT 4
- serverless.yaml 格式错误,部署失败的退出码为 0 HOT 1
- 更新缓存代码失败 HOT 3
- 使用 serverless-tencent 部署的go云函数,无法运行 HOT 1
- serverless-tencent v3.21.6 部署提示cli版本过低,无法部署 HOT 2
- 使用 github 中的 WebFunc-Go1-helloworld部署之后,在后台控制吧并没有创建触发器 HOT 4
- `http`组建部署`Next.js`时自动生成的`scf_bootstrap`不支持Next.js12 HOT 1
- 官方 NestJS 示例代码部署时报错提示大小超过上限
- 能否将云函数运行环境 Nodejs 16.3 升级到 Nodejs16.8
- DNS 解析失败:apigw.tencentcs.com
- 新建Wordpress框架应用失败 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-tencent.