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.

Introduce a "reset to empty" API endpoint

See original GitHub issue

As per my comment here: https://github.com/projectkudu/kudu/issues/2103#issuecomment-287624520

Basically, I’d really like an endpoint that I could call via the API that would reset the filesystem of the app to a new-state. The reasoning behind this is a bit layered as I’ve been encountering several snags in trying to make my deployments consistent. Much of it stemming from the (lack of) speed during filesystem access.

The premise is simple: This endpoint would take a POST and would quickly reset the wwwroot directory to a state like as if I had just created a fresh new App Service instance.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
atrauzzicommented, Mar 24, 2017

@davidebbo - Brilliant, this appears to have worked! I commented at Stack Overflow, but just in case anyone lands here via search as well:

This is my build that successfully pushed code up to Azure.

Here are links to my project showing how I invoked everything:

Other parts of that shell script are sure to be interesting to some as well. And of course, it’s easily adapted to PowerShell if that’s your preference.

1reaction
davidebbocommented, Mar 20, 2017

I agree that your question is perfectly reasonable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

REST API design for a "reset to defaults" operation
Let's discuss your mentioned options first: 1: DELETE does not necessarily need to delete or remove the state contained in the resource ...
Read more >
RESTful API design. What should I return if there are no ...
The answer provided by nirth should be the best, in a true REST scenario. The body response should be empty and the http...
Read more >
Empty an Amazon Neptune DB cluster using the fast reset ...
To delete all data from a Neptune DB cluster using the API​​ This step is intended to help prevent anyone from accidentally resetting...
Read more >
Connection Reset when calling outbound REST API
I have an outbound REST API endpoint call in a Scheduled Job Script. At first, I was receiving the HTTP timeout but I...
Read more >
Web API implementation - Best Practices
Learn about best practices for implementing a web API and publishing it to make it available to client applications.
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