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

Add 'Scripted Upgrades'-page #368

Merged
merged 3 commits into from
Jan 16, 2017
Merged

Add 'Scripted Upgrades'-page #368

merged 3 commits into from
Jan 16, 2017

Conversation

OleVik
Copy link
Contributor

@OleVik OleVik commented Jan 16, 2017

A guide to make upgrading multiple Grav-installations easier, using Deployer.

This PR adds a page under the 'CLI Console'-pages of the Docs named 'Scripted Upgrades', which is a tutorial on how to "automate" upgrades of multiple, separate installations of Grav. "Automate" in the sense that a single command can upgrade numerous independent sites. Whilst it is fairly comprehensive in detail, the language is colloquial enough to (hopefully) be understood by novice users.

It is based upon a discussion and walk through with @paulhibbitts on Gitter, as well as the brief example on the forums (now outdated, as the included example is improved). The script is aimed at being run on a shared server, but outlines that it can be extended to be ran locally or cross-server as well.

It has been tested on a few different configurations of shared server, running the typical LAMP-stack, as well as with a local Windows-installation. As a task-runner it is very simple in setup, requiring only 30 lines at minimum and Deployer on the back-end to run.

Input on changes or clarifications are very welcome.

@OleVik
Copy link
Contributor Author

OleVik commented Jan 16, 2017

And if anyone knows how to squash those damn Merge-commits in GitHub Desktop, I'd be very happy to get rid of them.

@flaviocopes flaviocopes merged commit a20de52 into getgrav:develop Jan 16, 2017
@flaviocopes
Copy link
Contributor

Thanks, that's cool! I didn't know about Deployer.

I merged the PR using squash&merge, since GitHub allows such functionality, it generates a single commit from any PR (a20de52).

You can also squash the commits yourself (e.g. http://eli.thegreenplace.net/2014/02/19/squashing-github-pull-requests-into-a-single-commit), especially useful when merging feature branches without making a github PR.

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

Successfully merging this pull request may close these issues.

2 participants