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 clone
the repository to/var/www/twitchplayspokemon/
. Rename the newly created folder tored
. -
Go into the
red
directory, then go into theconfig
directory. -
Copy or rename
sample.config.php
toconfig.php
. -
Open
config.php
and edit values where necessary. -
Go back to the main
red
directory, and go one level up, to/var/www/twitchplayspokemon/
. -
If it doesn't already exist, create a
config
directory here. -
Go into the newly created
config
directory, 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.sh
executable:chmod +x update.sh
-
Run
./update.sh
-
update.sh
willgit pull
,composer install -o
, andvendor/bin/phinx migrate
-
Load up the site, verify everything works, and you're ready to go.