Source code for http://twitchplayspokemon.org/
See this reddit thread for instructions on how to run it locally
For demo purposes, I'll be using a directory named red, located at /var/www/twitchplayspokemon/.
-
git clonethe repository to/var/www/twitchplayspokemon/. Rename the newly created folder tored. -
Go into the
reddirectory, then go into theconfigdirectory. -
Copy or rename
sample.config.phptoconfig.php. -
Open
config.phpand edit values where necessary. -
Go back to the main
reddirectory, and go one level up, to/var/www/twitchplayspokemon/. -
If it doesn't already exist, create a
configdirectory here. -
Go into the newly created
configdirectory, and create aconfig.php. -
Copy these contents into the newly created file, and adjust where necessary:
return [ "DB_DATABASE" => "twitchplayspokemon_", // The database prefix "IMG_PATH" => "/img", // Image path relative to the domain. May be an external CDN link "DB_HOST" => "localhost", // Database host "DB_USER" => "tppuser", // Database username "DB_PASS" => "tpppass", // Database password "TPP_CACHE_KEY" => "cachekey", // Cache key which can be used to refresh the contents, if caching is enabled ]; -
Make
update.shexecutable:chmod +x update.sh -
Run
./update.sh -
update.shwillgit pull,composer install -o, andvendor/bin/phinx migrate -
Load up the site, verify everything works, and you're ready to go.