Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Netlify CMS from within the app #3353

Closed
austincondiff opened this issue Mar 2, 2020 · 3 comments
Closed

Update Netlify CMS from within the app #3353

austincondiff opened this issue Mar 2, 2020 · 3 comments

Comments

@austincondiff
Copy link
Collaborator

It wouldn't seem too terribly difficult to update the netlify-cms version in the project's package.json and then trigger a deploy. Then we would watch for the completion of that deploy and refresh the page.

If there is a build error for whatever reason we could alert the user and give them the option to roll back and handle the update manually.

When the user loads up the app, we could send a request to check for updated versions. If one exists we unobtrusively notify the user that an update is available and display a button they can click to start the update process.

@erezrokah
Copy link
Contributor

package.json changes shouldn't be an issue, lock files (e.g. yarn.lock) will be difficult to handle. In order to have reproducible builds one needs to use a lock file. Some build systems are set up in a way that when the package.json doesn't match the lock file the build fails.

@austincondiff
Copy link
Collaborator Author

austincondiff commented Mar 2, 2020

Maybe a subsequent push or the update command could be done via Netlify?

In any event, I still think this is doable.

@martinjagodic
Copy link
Member

We don't want to hand user too much power, and updating dependencies is potentially dangerous. I am closing as not planned.

@martinjagodic martinjagodic closed this as not planned Won't fix, can't repro, duplicate, stale Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants