This is built specifically for pxls.space. If your pxls.space install is older than Sept 8, 2018, then you'll be missing some columns and tables on your database. See this commit for details: xSke/Pxls 4f22e
This is shitty guide only for local testing, because no normal guide since 2019
- Rename
config.example.phptoconfig.php - Modify
config.phpwith all the necessary values (config/etc). It should looks like this:
$DB_HOST = "127.0.0.1";
$DB_USER = "postgres";
$DB_PASSWORD = "your_password";
$DB_DATABASE = "pxls";
$INSTANCE_URL = "http://localhost:4567";
- Change all "href" started with "//" to "https://" in
index.html - Change "whoamiRoot" in
main.js(line 19) to "http://localhost:4567/" (or different port where your pxls instance works) - Generate stats.json from database:
php cron.php
- Start browser without CORS in terminal:
Windows:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files --disable-web-security --disable-gpu --user-data-dir=%LOCALAPPDATA%\Google\chromeTemp
or"C:\Program Files\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files --disable-web-security --disable-gpu --user-data-dir=%LOCALAPPDATA%\Google\chromeTemp
Linux:
google-chrome --allow-file-access-from-files --disable-web-security
OSX:
open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --allow-file-access-from-files --disable-web-security
- Put
index.htmlin browser window