How to test the most recent Vanilla version
Have you ever wanted to get a glimpse on what the bright Vanilla future will bring? Well, you can fork the GitHub repo, download phing and composer to build an installable package from the sources, upload that to a server, setup PHP, a http server and start testing. Sounds complicated? Well, yes it is.
But there is a far more easy way to test it: get a free account at Cloud9 and use an installer script!
(I admit, I have stolen the idea and I have already written about it, but I thought it would be the perfect platform for testing the master branch and therefore I have written the installer script)
Cloud9 provides an online IDE and in order to be able to use it, they provide you with "workspaces". Those workspaces are like virtual servers: they are fully usable Linux (Ubuntu) virtual machines. Don't panic, you will not need any Linux knowledge at all!
Just follow those easy steps and you will be able to see what the developers are looking at:
1. Register a free account at Cloud9
No help from my side on that
2. Create a new workspace
You have to fill out only a few fields:
Workspace name: "vanilla"
Description: "The latest and greatest Vanilla forums version"
Clone from Git or Mercurial URL: "https://github.com/vanilla/vanilla.git"
Choose a template: "PHP, Apache & MySQL"
Ready. Click the "Create workspace" button.
While you can freely choose "Workspace name" and "Description", you have to use the repo's url and the template just like given above
3. Run the script
- Open the new workspace
- You see a terminal at the bottom of the page: type the following in there
nano build/build.shto open a simple editor.
- Copy the complete installer script from here. Ctrl+a, Ctrl+c is a fool proof way to be sure you really have copied the complete content.
- Open the browser window with the open workspace (from the first step). Click on the terminal window at the bottom. And now: forget about your mouse. You will not need it for the following steps
- Paste the content of the clipboard to the terminal in your browser window. Paste with Ctrl+v, using the mouse will give some strange message which I didn't even bothered to read
- Close the editor by first pressing Ctrl+x, answering the next question with "y" and simply hit return when prompted afterwards to give the file name.
- This is Linux so we have to make that file executable. First change to the folder: type
cd builtand hit enter. Then type
chmod u+x build.shand hit enter again.
- Now you can start the script! Type
./build.shand hit enter.
- The script does a lot of things and will ask a lot of questions. All those "are you really sure"/"do you really want" questions must be answered with "y" for yes. If you see a dialog asking for a MySQL password simply hit enter or if you insert a password there, don't forget it! You will need it later. If you are asked to overwrite files, say yes, again
4. Start the server
When the script is finished, you're good to go! At the top of the c9 workspace screen there is a "Run Project" menu entry - you can't miss the green "play" symbol
When you click that button, a new window will open up at the bottom telling you that Apache is starting (that is the name of the web server) and it shows you a link to your new test forum. Click on that "link". You will find that it is not a clickable link but it will show a menu with an "Open" menu entry. Well, what else would we want to do? Click "Open"!
5. Install Vanilla
Now you will see Vanillas setup page. Use the following database information:
Database Host: "0.0.0.0"
Database Name: "c9"
Database User: "root"
Database Password: leave that field blank (or fill in the password from step 3.9.)
Fill out the rest of the fields as you like and you are finished: BAM!
WARNING! What you are looking at after that is the developer version and it is constantly worked on. If you create your copy at the wrong moment it might happen that your installation isn't usable at all. But fear not, I will describe what to do to keep it in sync with the GitHub master branch in a later post