This is the source code of Opencaching.PL and several other national Opencaching sites.
More documentation is available in our Wiki.
You can run OCPL locally with DDEV, see its installation guide. Alternatively, you can use the development virtual machine or set up the environment manually on Linux or Windows.
ddev start
ddev initddev init downloads a development database dump, imports it and runs OC and OKAPI database updates. Run it again whenever you want to reset the database.
- The site runs at https://ocpl.ddev.site, the mobile site at https://m.ocpl.ddev.site and OKAPI at https://ocpl.ddev.site/okapi/.
- You can log in as any user with the password
haslo. - Emails are caught by Mailpit, open it with
ddev mailpit. - Use
ddev mysqlfor a database shell, andddev describefor ports to connect other database clients. lib/settings.inc.phpandconfig/*.local.phpare created from templates in.ddev/ocplon the first start.- Cron jobs run every 5 minutes as on production, except for the jobs disabled in
config/cronjobs.local.phpandconfig/okapiConfig.local.php. Their output goes to/tmp/ocpl-cron.log(ddev exec tail /tmp/ocpl-cron.log).