The Hitchhiker's Guide to Hitchhiking the World
Hitchwiki is a collaborative website for gathering information about hitchhiking and other ways of extremely cheap ways of transport. It is maintained by many active hitchhikers all around the world. We have information about how to hitch out of big cities, how to cover long distances, maps and many more tips.
This version is currently under heavy development in Vilnius, 5.—16.12.2016 by @simison, @Remigr and @omelnyk.
Contact us if you want to join the effort!
Read more about developing Hitchwiki from the wiki
- A GNU/Linux or OS X machine. Let us know if this works with Cygwin.
- Install VirtualBox (...because)
- Install Vagrant (docs)
- Make sure you have
git
installed on your system. (git --version
)
-
Clone the repo:
git clone https://github.com/Hitchwiki/hitchwiki.git && cd hitchwiki
-
If you want to modify any settings before installation, copy files and do modifications to them:
cp configs/settings-example.ini configs/settings.ini
cp configs/vagrant-example.yaml configs/vagrant.yaml
Some of the settings you can modify:
- If self signed certificate will be installed (i.e. use
https
) (vagrant.yaml
andsettings.ini
) - Domain (
hitchwiki.dev
by default) or develop using IP (192.168.33.10
by default)
- Start installation:
./scripts/vagrant/install.sh
-
Install will ask for your password to add
hitchwiki.dev
to your/etc/hosts
file. You can modify your sudoers file to stop Vagrant asking for password each time. -
Open http://hitchwiki.dev/ in your browser. https://hitchwiki.dev/ works if you set
setup_ssl
totrue
fromconfigs/vagrant.yaml
After setup your virtual machine is running. Suspend the virtual machine by typing vagrant suspend
.
When you're ready to begin working again, just run vagrant up
.
- Install Vagrant hostmanager plugin
- Setup Vagrant box
- Download and extract Mediawiki
- Install dependencies with Composer
- Create a database and configure MediaWiki
- Import pages from
./scripts/pages/
- Create three users (see below)
- Install Parsoid and VisualEditor
- Admin: Hitchwiki / autobahn
- Bot: Hitchbot / autobahn
- User: Hitchhiker / autobahn
If you do changes to Semantic structures (forms, templates etc), you should export those files by running:
./scripts/vagrant/export_pages.sh
This is done once at install, but needs to be done each time somebody changes content inside ./scripts/pages/
. It can be done by running:
./scripts/vagrant/import_pages.sh
- Enable debugging mode by setting
debug = true
from./configs/settings.ini
. You'll then see SQL and PHP warnings+errors. - Use Debugging toolbar by setting get/post/cookie variable
hw_debug=1
. - See EventLogging extension
- Pull latest changes:
git pull origin master
- Run update script:
./scripts/vagrant/update.sh
- Run re-install script:
./scripts/vagrant/reinstall.sh
We're using Scotchbox.
vagrant ssh
You're probably most interested in folder /var/www/
Setting | Value |
---|---|
User | root |
Pass | root |
Host | localhost |
Only via SSH Forwarding.
Setting | Value |
---|---|
User | root |
Pass | root |
Host | localhost |
SSH Host | 192.168.33.10 |
SSH User | vagrant |
SSH Password | vagrant |
If for some reason you want to have clean ScotchBox, database and MediaWiki installed, run:
vagrant destroy && vagrant up
TODO
Code MIT Contents Creative Commons
Our custom MediaWiki extensions:
- HWMap-extension
- HWRatings-extension
- HWWaitingTime-extension
- HWComments-extension
- HWLocationInput-extension
- HitchwikiVector-extension
- BetaFeatureEverywhere
Our fork of an abandoned extension:
- HWVectorBeta (previously
VectorBeta
)