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.

Ignore check for unchanged files after failed deployment

See original GitHub issue

After a failed deployment due to remote (CloudFormation) error I have to use sls deploy --force to trigger a new deployment with the same configuration because serverless skips the deployment with the Service files not changed. Skipping deployment... notice per default.

Expected behaviour

If a deployment failed due to a remote (CloudFormation) error, a new sls deploy should trigger a deployment even if the service files have not changed. The check for unchanged configuration should only matter after a successful deployment.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:50
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

46reactions
sbstjncommented, Jul 25, 2017

Have you tried to use sls deploy --force @tom10271 ?

9reactions
emmanuelnkcommented, Feb 20, 2019

+1 Bump on this issue. Serverless should be able to clean up failed deployments. Using --force doesn’t seem like a very stable solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Service files not changed. Skipping deployment. - Seed.run
Serverless Framework has an option to skip this check and deploy anyway. Use the --force flag when you run serverless deploy . ......
Read more >
Ignore files in your Git repo - Azure - Microsoft Learn
To resume tracking, run the git update-index command with the --no-assume-unchanged flag. Use Git rm to ignore changes. Entries in a .gitignore ...
Read more >
Keep file in a Git repo, but don't track changes - Stack Overflow
The docs say this is a bad idea. "Users often try to use the assume-unchanged and skip-worktree bits to tell Git to ignore...
Read more >
Deploy files that actually changed (#60296) · Issues - GitLab
I'm guessing in terms of file size, it remained the same but now the time the file was last modified changed but this...
Read more >
How to skip jobs based on the files changed in a subdirectory?
I am working at a company who use the monorepo pattern to store their code. Each sub project has its own test and...
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