Patch demo: Difference between revisions

329 bytes added ,  21 September 2022
no edit summary
(Created page with "<div>thumb|Example of a PatchDemo wiki</div><div>'''[https://patchdemo.wmflabs.org PatchDemo]''' is a rather interesting Wikimedia project. It allows users to spin up temporary MediaWiki instances from version 1.23 to the beta 1.39 builds and apply any patches they want. It's also a good way to test out MediaWiki without vandalism complaints or being blocked. Users will also need a Wikimedia account, [https://meta.wikimedia.org/wiki/Special:CreateA...")
 
No edit summary
 
(3 intermediate revisions by one other user not shown)
[[File:Patchdemo.png|thumb|Example of a PatchDemo wiki]]
<div>[[File:Patchdemo.png|thumb|Example of a PatchDemo wiki]]</div><div>'''[https://patchdemo.wmflabs.org PatchDemo]''' is a rather interesting Wikimedia project. It allows users to spin up temporary MediaWiki instances from version 1.23 to the beta 1.39 builds and apply any patches they want. It's also a good way to test out MediaWiki without vandalism complaints or being blocked. Users will also need a Wikimedia account, [https://meta.wikimedia.org/wiki/Special:CreateAccount which can be done easily.]</div><div><br></div><div>== How to create a wiki ==</div><div><br></div><div>It's very simple.</div><div><br></div><div>* 1) [https://patchdemo.wmflabs.org You must go to the website.]</div><div>* 2) Sign in with your Wikimedia account.</div><div>* 3) Select a MediaWiki version, master is the default (and loads the newest 1.39 build), You can also select 1.38 if that's your gig.</div><div>* 4) You can add any patches from Gerrit if you want.</div><div>* 5) Fill out the rest.</div><div>* 6) Click "Create demo"!, the website will automatically install MediaWiki for you and set up the database. You will receive a browser notification (if you enabled them) when your wiki is created.</div><div><br></div><div>== Closing a wiki ==</div><div><br></div><div>Just like creating a wiki, closing it is simple.</div><div><br></div><div>* 1) Go back to the website.</div><div>* 2) Under "My wikis", click Delete under the wiki you want to close.</div><div>* 3) Confirm the deletion</div><div>* 4) Done!</div>
'''[https://patchdemo.wmflabs.org PatchDemo]''' is a rather interesting Wikimedia project. It allows users to spin up temporary MediaWiki instances from version 1.23 to the beta 1.39 builds and apply any patches they want. It's also a good way to test out MediaWiki without vandalism complaints or being blocked. Users will also need a Wikimedia account, [https://meta.wikimedia.org/wiki/Special:CreateAccount which can be done easily.]
 
== How to create a wiki ==
{{Message|Do not store any sensitive data on wikis created with Patch demo. They are not guaranteed to stay up permanently!}}
It's very simple.
 
# [https://patchdemo.wmflabs.org You must go to the website.]
# Sign in with your Wikimedia account.
# Select a MediaWiki version, master is the default (and loads the newest 1.39 build), You can also select 1.38 if that's your gig.
# You can add any patches from Gerrit if you want.
# Fill out the rest.
# Click "Create demo"!, the website will automatically install MediaWiki for you and set up the database. You will receive a browser notification (if you enabled them) when your wiki is created.
 
== Closing a wiki ==
 
Just like creating a wiki, closing it is simple.
 
# Go back to the website.
# Under "My wikis", click Delete under the wiki you want to close.
# Confirm the deletion
# Done!
 
== Running it yourself ==
 
''Disclaimer: This project is not secure, it is designed for users to run arbitary code, and wikis are not isolated. You are fully responsible if something happens if you run this on your host.''
 
Running it is extremely simple, these steps were tested on Debian 10:
 
# Put [https://github.com/MatmaRex/patchdemo the entire Git repo] in <code>/var/www/html</code>
# Run <code>sudo setup.sh</code>
# Visit [http://localhost localhost] in your browser!