Coder Social home page Coder Social logo

Comments (4)

timqian avatar timqian commented on July 20, 2024

@hellojuly 可以通过 --inputs 参数覆盖 serverless.yml 中的配置
例如你希望部署到 ap-shanghai 可以使用如下命令:

sls deploy --inputs region=ap-shanghai

文档:https://cn.serverless.com/framework/docs-commands-deploy

from serverless-tencent.

hellojuly avatar hellojuly commented on July 20, 2024

感谢@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.

ole3021 avatar ole3021 commented on July 20, 2024

@hellojuly 相关内容已经发布,现在 target 可以正确读取到指定目录的 .env 配置

from serverless-tencent.

hellojuly avatar hellojuly commented on July 20, 2024

收到,大佬辛苦了☕️ @ole3021

from serverless-tencent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.