vs-laravel-skeleton maintained by laraviet
I. Setup Laravel Skeleton in Local (for module development)
git clone https://github.com/laraviet/vs-laravel-skeleton.gitcomposer installcp .env.example .env- Create database end edit
.envfor updated db connection php artisan key:generatephp artisan migrate --seedphp artisan module:seed- update
CACHE_DRIVER=redisin .env (make sure install redis in local) - update
email infoin.env(for reset password) rm -rf Module/AdminHomerm -rf Module/Coregit clone https://github.com/laraviet/core-module.git Modules/Coregit clone https://github.com/laraviet/admin-home-module.git Modules/AdminHomephp artisan storage:link- update
APP_URLin.envto match real domain
II. Installation for client's real project
- composer create-project laraviet/vs-laravel-skeleton -s dev project-name
- config database vs update .env
- update
CACHE_DRIVER=redisin .env (make sure install redis in vps) - update
email infoin.env(for reset password) php artisan migrate —seedphp artisan module:seedphp artisan storage:link- update
APP_URLin.envto match real domain
III. Auto Deploy in Github
- Edit file
public/deploy.php=> updatecdcommand to right folder in VPS - Access VPS and add below line into
.git/config[credential] helper = store --file /var/www/sites/licensing.viralsoft.vn/.git-credentials- (Choose right folder)
- Access
Settings/Webhooks=> Add webhook - Fill Payload URL as
fullurl/deploy.php- Example
http://licensing.viralsoft.vn/deploy.php
- Example
- Choose
Content typeasapplication/json - Click
Add webhookbutton