Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 2.1 KB

File metadata and controls

56 lines (41 loc) · 2.1 KB

Setup

Built with Ye Olde CodeIgniter 3.1 (required PHP version >= 7.4).
Copy all files to the host and configure the base_url and the DB settings.

If the site is running under a path the .htaccess file RewriteBase / line needs to be updated to reflect that path.

Configure the autoload[config] value to match an existing config file (fnf, ofcra, 3cb, 242ns, rb, localhost), or create a new one.

Database

The table structure is in the db.skeleton.sql file. (MySQL/MariaDB format)

Import the skeleton first, and then a seed if you want to.

Admin access

The admin interface can be accessed via a URL with a fixed token tied to a user name.

Use the base_url/login/username/admin_key URL to reveal the actual login URL for username.

The admin_key is left at the default value for the demo sites for now. You're welcome to mess around, but please don't screw up anything intentionally. 🥺

Development

Spin up a development environment by running docker-compose up.
The DB skeleton is loaded automatically into the ocapstats database.
The latest FNF seed is loaded in the adminer service container, and available under Import / From server via the Run file button.

Services

Required permissions

You need to make sure that PHP has sufficient permissions to access the application/cache and application/logs folder.

Set the owner to nobody (web service user):

sudo chown -R nobody application/cache application/logs

or allow RWX for everyone:

sudo chmod 0777 -R application/cache application/logs