Last active
January 21, 2018 06:58
-
-
Save kriskornel/48734e1d3000fab7b4353eb98085b954 to your computer and use it in GitHub Desktop.
Command For Deployment in Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Langkah-langkah untuk Merge Ke Production: | |
-- | |
## Contents: | |
-- | |
1. Bitbucket | |
- Merge dari branch dev ke master (lakukan melalui bitbucket) | |
- Masuk ke Server lakukan pull request untuk coding terbaru: | |
```git pull origin master``` | |
2. Upgrade to laravel 5.4 | |
- Sebelum upgrade jalankan command berikut: | |
> Hapus file bootstrap/cache/compiled.php bila ada | |
> php artisan view:clear | |
> php artisan route:clear | |
> remove vendor folder (command: rm -rf vendor) | |
- Lalu jalankan command: | |
> composer install | |
3. Migrasi Table Baru | |
- php artisan migrate | |
- Bila table skill dan categories masih kosong, bisa di isi data menggunakan perintah seeder: | |
> php artisan db:seed --class=CategoriesTableSeeder | |
> php artisan db:seed --class=SkillTableSeeder | |
4. Skill Point | |
- Untuk memunculkan skill point suggestion di halaman user/profile dan sesudah user login, | |
dibutuhkan 1 data relasi antara table user dan skill yang akan tersimpan di pivot table dengan nama | |
skill_distributions | |
5. Daftar Command | |
- Command Penambahan Default Skill Point untuk User | |
> php artisan users:setpoint | |
(artinya: tambahkan skill point default sebesar 15 point untuk semua user yang skill_points columnya bernilai 0) | |
> php artisan users:setpoint user_id --point=total_point | |
(contoh: php artisan users:setpoint 1 --point=20) | |
artinya, tambahkan skill point 20 point untuk user dengan id 1 | |
> php artisan users:setpoint user_id | |
(contoh: php artisan users:setpoint 1) | |
artinya, tambahkan skill point sebesar 15 point untuk user dengan id 1 | |
- Menambahkan Profile Slug untuk Existing User: | |
> php artisan create:profileslug | |
- Command Penambahan Skill otomatis yang dijalankan cronjobs/scheduler: | |
> php artisan update:user-skill | |
( command di atas akan dijalankan sesuai dengan waktu yang sudah di atur di file app/Console/Kernel.php ) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment