-
Notifications
You must be signed in to change notification settings - Fork 2
Quickstart
Simon Konglevoll Lønnestad edited this page Jun 3, 2019
·
2 revisions
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!
- 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
- Clone RuneManager via Git to the newly created folder.
cd /var/www/html/runemanager
git clone https://github.com/Zlimon/RuneManager-OSRS.git .
- Next, install the RuneManager dependencies with Composer and clean up the installation files.
composer install
php artisan clear-compiled
- Copy the .env-example file into a file named .env, and edit the .env file with your favourite editor and set the environment variables.
- Generate an encryption key and link a storage syslink (this is where newspost images are stored).
php artisan key:generate
php artisan storage:link
- Populate the database with the necassery tables and relations.
php artisan migrate:fresh
- Create a crontab job schedule so the hiscores on the website are regularly updated.
crontab -e
* * * * * php /var/www/runemanager/artisan schedule:run
- 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
If you want to contribute to RuneManager or have any questions, please contact Simon via email: simon.k.lonnestad@gmail.com