Skip to content

Quickstart

Simon Konglevoll Lønnestad edited this page Jun 3, 2019 · 2 revisions

Installation

If you are already familiar with Laravel and setting up a Laravel application with Nginx or Apache, just follow these instructions. If not, visit our wiki for clear instructions on how to install everything you need!

Linux

  1. Create a folder and give your current user ownership of it.
sudo mkdir -p /var/www/html/runemanager
sudo chown $USER:$USER /var/www/html/runemanager
  1. Clone RuneManager via Git to the newly created folder.
cd /var/www/html/runemanager
git clone https://github.com/Zlimon/RuneManager-OSRS.git .
  1. Next, install the RuneManager dependencies with Composer and clean up the installation files.
composer install
php artisan clear-compiled
  1. Copy the .env-example file into a file named .env, and edit the .env file with your favourite editor and set the environment variables.
  2. Generate an encryption key and link a storage syslink (this is where newspost images are stored).
php artisan key:generate
php artisan storage:link
  1. Populate the database with the necassery tables and relations.
php artisan migrate:fresh
  1. Create a crontab job schedule so the hiscores on the website are regularly updated.
crontab -e
* * * * * php /var/www/runemanager/artisan schedule:run
  1. Change the group ownership of the storage and bootstrap/cache directories to www-data, and then recursively grant all permissions, including write and execute, to the group.
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache