Follow these instructions for deployment on a shared hosting environment.
Requirements: php == 8.2
composer >= 2.7
- Clone branch
production
from this repository
git clone -b production https://github.com/MPC-Rebold/assessments-laravel.git
-
Copy
.env.example
to.env
and set the environment variables -
Run the following:
composer install
php artisan key:generate
php artisan migrate --force
php artisan db:seed
-
Copy the seed files to the
database/seed
directory -
Copy the following into the root directory of the server (
public_html
)./public/build/**
./public/.htaccess
./public/index.php
./public/robots.txt
-
In
public_html/index.php
change the following lines:
require __DIR__.'/../vendor/autoload.php';
/* ... */
$app = require_once __DIR__.'/../bootstrap/app.php';
to
require __DIR__.'/../assessments-laravel/vendor/autoload.php';
/* ... */
$app = require_once __DIR__.'/../assessments-laravel/bootstrap/app.php';
Follow these instructions for development on a local environment.
Requirements: php == 8.2
composer >= 2.7
node >= 20
npm >= 8
- Clone this repository
- Copy
.env.example
to.env
and set the environment variables - Run the following:
npm install
composer install
php artisan key:generate
php artisan migrate --force
php artisan db:seed
- Copy the seed files to the
database/seed
directory