VPS Installation
After install mysql, php, composer, nodejs, npm do below steps. If you don't know how to install these things then do some googling about to setup these tools in your Operating System.
- After unzip the download file or
git clone
the application. go to application directory - change directory
$ cd cloudschool
- Copy sample
env
file and change configuration according to your need in ".env" file and create Database$ cp .env.example .env
- Install php libraries
$ composer install
Setup application
Method 1: By one command
# setup cloudschool with out demo data $ php artisan fresh-install # setup cloudschool with demo data $ php artisan fresh-install --with-data # OR $ php artisan fresh-install -d
Method 2: Step by step
$ php artisan storage:link $ php artisan key:generate --ansi # Create database tables and load essential data $ php artisan migrate $ php artisan db:seed # Load demo data $ php artisan db:seed --class DemoSiteDataSeeder $ php artisan db:seed --class DemoAppDataSeeder # Clear all caches $ php artisan view:clear $ php artisan route:clear $ php artisan config:clear $ php artisan cache:clear
Install frontend(css,js) dependency libraries and bundle them
$ npm install $ npm run backend-prod $ npm run frontend-prod
Install supervisor and configure laravel queue worker(Optional)
For attendance upload, sms and email processing you need to run laravel queue worker. That's a background job and it's run separate from laravel web application. After install the supervisor use
bin/cloudschool-worker.conf
supervisor config file for start queue worker with supervisor. for more details visit here