Follow these instructions for deployment on a shared hosting environment.
Requirements: php == 8.2 composer >= 2.7
- Clone branch
productionfrom this repository
git clone -b production https://github.com/MPC-Rebold/assessments-laravel.git-
Copy
.env.exampleto.envand 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/seeddirectory -
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.phpchange 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.exampleto.envand 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/seeddirectory