laraviet/vs-laravel-skeleton

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

The Laravel Framework.


README

  1. git clone https://github.com/laraviet/vs-laravel-skeleton.git
  2. composer install
  3. cp .env.example .env
  4. Create database end edit .env for updated db connection
  5. php artisan key:generate
  6. php artisan migrate --seed
  7. php artisan module:seed
  8. update CACHE_DRIVER=redis in .env (make sure install redis in local)
  9. update email info in .env (for reset password)
  10. rm -rf Module/AdminHome
  11. rm -rf Module/Core
  12. git clone https://github.com/laraviet/core-module.git Modules/Core
  13. git clone https://github.com/laraviet/admin-home-module.git Modules/AdminHome
  14. php artisan storage:link
  15. update APP_URL in .env to match real domain

II. Installation for client's real project

  1. composer create-project laraviet/vs-laravel-skeleton -s dev project-name
  2. config database vs update .env
  3. update CACHE_DRIVER=redis in .env (make sure install redis in vps)
  4. update email info in .env (for reset password)
  5. php artisan migrate —seed
  6. php artisan module:seed
  7. php artisan storage:link
  8. update APP_URL in .env to match real domain

III. Auto Deploy in Github

  1. Edit file public/deploy.php => update cd command to right folder in VPS
  2. Access VPS and add below line into .git/config
        [credential]
               helper = store --file /var/www/sites/licensing.viralsoft.vn/.git-credentials
    
    • (Choose right folder)
  3. Access Settings/Webhooks => Add webhook
  4. Fill Payload URL as fullurl/deploy.php
    • Example http://licensing.viralsoft.vn/deploy.php
  5. Choose Content type as application/json
  6. Click Add webhook button