question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

deploy to `staging` and `production`

See original GitHub issue

This is a:

  • Feature request or change

For feature requests or changes:

Current behavior (if any)

Removed “stage” command-line option. It was not being used for anything

Proposed behavior

Bring it back

Justification

Hey guys, thank you so much for your hard work. Since you removed the stage option, how do we deploy to staging and production?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
artoliukkonencommented, Oct 30, 2018

I don’t think the plugin needs to support --stage, since if it’s required by the app it’s easy to define it in serverless config. I’m using:

custom:
  stage: ${opt:stage, self:provider.stage}
  client:
    bucketName: my-bucket-${self:custom.stage}

Might be worth mentioning this example in README tho.

1reaction
florianherrengtcommented, Oct 8, 2018

Hi @fernando-mc, thanks for your reply. There is still the option of using

provider:
  stage: ${opt:stage, 'dev'}

I understand it might be redundant but I feel --stage was more consistent with the serverless CLI.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploy to Staging and Production | Adobe Commerce
Learn how to deploy your Adobe Commerce on cloud infrastructure code to the Staging and Production environments for further testing.
Read more >
Deployments Best Practices - Beanstalk Guides
Once the features are implemented and considered fairly stable, they get merged into the staging branch and then automatically deployed to the Staging...
Read more >
Production and Staging deployments · Codefresh | Docs
With Codefresh you can deploy a single application to multiple environments (e.g. qa/staging/prod) and manage all of them with a single or multiple...
Read more >
Difference Between Development, Stage, And Production
The stage environment is as similar to the production environment as it can be. You'll have all of the code on a server...
Read more >
The Development, Staging, and Production Model - ITPro Today
The staging server is the last step before the application is ready for deployment to a production server. In many environments, a final...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found