You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
2 months ago | |
|---|---|---|
| app | 2 months ago | |
| bootstrap | 2 years ago | |
| config | 2 years ago | |
| database | 1 year ago | |
| public | 2 years ago | |
| resources | 2 years ago | |
| routes | 1 year ago | |
| storage | 2 years ago | |
| tests | 2 years ago | |
| .editorconfig | 2 years ago | |
| .env.example | 2 years ago | |
| .gitattributes | 2 years ago | |
| .gitignore | 2 years ago | |
| README.md | 2 years ago | |
| artisan | 2 years ago | |
| composer.json | 2 years ago | |
| composer.lock | 2 years ago | |
| package.json | 2 years ago | |
| phpunit.xml | 2 years ago | |
| vite.config.js | 2 years ago | |
README.md
Note: if you forgot how to open readme from vs code:
- Ctrl K + V (Side bar readme)
- Crtl Shift V (Full size read me)
Laravel Tivi
Instalation
-
open /etc/php/8.2/fpm/php.ini
- upload_max_filesize = 100M
- post_max_size = 100M
-
Pull Project on server
-
Setting .env from .env.example
- note: fill SANCTUM_LARAVEL_DOMAINS with frontend url
- example: SANCTUM_STATEFUL_DOMAINS=[http://tv.bintangtechnology.com,https://tv.bintangtechnology.com,]
-
run command
- sudo chmod -R 777 storage -> laravel storage log permission
- php artisan storage:link -> if u use public storage in laravel, not s3
- composer update {or} /usr/bin/php8.2 /usr/local/bin/composer update
- php artisan migrate --seed {or} php8.2 artisan migrate --seed
- php artisan key:generate {or} php artisan key:generate
-
note:
- usually, cors problem cause by chmod on /storage or upload_max_filesize / post_max_size (only happen when u debug with firefox)
Update
- open project loaction (ex: /var/www/api_tivi)
- run command
- git pull --all
- composer install
- php artisan migrate (if it has database changes)