We'll assume you already have a webserver (preferably Apache) and a MySQL or MariaDB instance running.
- Run
composer update
in the terminal. This is required for dependencies to work. - (Placeholder regarding DB user configuration, and likely BunnyCDN-related stuff) Currently, you'll need to copy
/config/config.example.php
file to/config/config.php
and fill out the required DB parameters. This might change later on however - (Placeholder regarding DB importing, this should be done with a migration-esque system?)
- Compile the SCSS using the
compile-scss.sh
script available in thetools
folder.
Replace LOCATION
with where your copy of OpenSB2 is located.
<VirtualHost *>
ServerName localhost
DocumentRoot "LOCATION/public"
Alias /dynamic "LOCATION/dynamic"
<Directory "LOCATION">
Options Indexes FollowSymLinks
Require all granted
AllowOverride All
</Directory>
</VirtualHost>
OpenSB2 comes with a simple Docker image running MariaDB and NGINX. You can set it up really easily
- Edit MariaDB environment variables in
docker-compose.yml
and change the DB host inconfig/config.php
tomariadb
- Run
docker compose up --build
- Import the SQL file using Adminer (hosted on http://localhost:6060 by default)
- Go to http://localhost:8080
- Uncomment
expires 1y;
andadd_header Cache-Control "max-age=31536000";
indocker/nginx/default.conf
to setup the NGINX cache and add a Cache-Control header for dynamic content
If you have any issues setting the Docker images up for a dev instance contact @rgbagain in the Qobo development GC. I'd be happy to help.
OpenSB2 is not compatible with OpenSB databases, and vice versa.