Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.38 KB

README.md

File metadata and controls

36 lines (28 loc) · 1.38 KB

SegoliP Unit

A website for the ILRI SegoliP Unit.

Screenshot of SegoliP Unit website

Runtime Dependencies

  • MariaDB 10.5+
  • PHP 7.x

Setup

Assuming the dependencies have been installed and configured, the site can be set up and seeded with sample data like so:

$ sudo mkdir -p /var/www/segolip.ilri.org
$ sudo chown -R provisioning:provisioning /var/www/segolip.ilri.org
$ cd /var/www/segolip.ilri.org
$ git clone https://github.com/ilri/segolip.git .
$ composer install
$ cp .env.example .env
$ vim .env # set URL, mail, and database parameters
$ php artisan key:generate
$ sudo chown -R nginx:provisioning storage/* bootstrap/cache
$ sudo find storage -type d -exec chmod 775 {} \; -type f -exec chmod 664 {} \;
$ sudo find bootstrap/cache/ -type d -exec chmod 775 {} \; -type f -exec chmod 664 {} \;
$ php artisan migrate:fresh --seed

You will have to adjust for your server environment (ie, Apache vs Nginx, and the user running the code).

Note: the php artisan migrate:fresh --seed should only be run once for the initial setup. Do not run this on a production server because it re-creates all users and services from scratch.

License

This website uses the Laravel framework, which is open-sourced software licensed under the MIT license.