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.
1.1 KiB
1.1 KiB
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)