devops

CI/CD

| | Devops
CI/CD adalah Continuous Integration / Continuous Deployment — praktik otomatisasi testing dan deployment. Setiap perubahan kode otomatis di-test dan di-deploy ke production. # Contoh CI/CD dengan GitHub Actions name: Deploy on: push jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Deploy to Server run: rsync -avz ./ user@server:/var/www/ Istilah Terkait GitHub DevOps Docker Kembali ke Glosarium Pemrograman

CLI

| | Devops
CLI adalah Command Line Interface — antarmuka berbasis teks untuk berinteraksi dengan sistem operasi atau aplikasi. Developer menggunakan CLI untuk git, npm, composer, dan tools lainnya. # Perintah CLI dasar echo "Hello World" ls -la /home/user npm install express Istilah Terkait Git Terminal Bash Kembali ke Glosarium Pemrograman

Deployment

| | Devops
Deployment adalah Proses memindahkan dan menjalankan aplikasi dari environment development ke production server. Meliputi build, testing, database migration, dan konfigurasi server. # Step deployment aplikasi Laravel 1. git pull origin main 2. composer install --no-dev 3. php artisan migrate 4. php artisan config:cache 5. php artisan route:cache 6. php artisan view:cache Istilah Terkait CI/CD DevOps Server Kembali ke Glosarium Pemrograman

Docker

| | Devops
Docker adalah Platform containerization yang memungkinkan aplikasi berjalan dalam lingkungan terisolasi. Container lebih ringan dari virtual machine karena berbagi kernel OS. # Contoh Dockerfile FROM php:8.2-apache COPY . /var/www/html/ RUN docker-php-ext-install pdo_mysql EXPOSE 80 Istilah Terkait DevOps Linux CI/CD Kembali ke Glosarium Pemrograman

Environment Variable

| | Devops
Environment Variable adalah Nilai konfigurasi yang disimpan di luar kode, biasanya di file .env atau system environment. Memisahkan konfigurasi (DB password, API key) dari source code. # File .env (TIDAK di-commit ke Git) APP_NAME=PemburuKode APP_ENV=production DB_HOST=localhost DB_DATABASE=blog DB_USERNAME=root DB_PASSWORD=rahasia # Akses di Laravel $dbPassword = env('DB_PASSWORD'); Istilah Terkait Deployment Security PHP Kembali ke Glosarium Pemrograman

Git

| | Devops
Git adalah Version Control System (VCS) yang melacak perubahan file dalam project. Memungkinkan kolaborasi tim, branching, dan rollback ke versi sebelumnya. # Perintah Git dasar git init git add . git commit -m "Initial commit" git push origin main git pull origin main Istilah Terkait GitHub CLI DevOps Kembali ke Glosarium Pemrograman

Git config git

| | Devops
Git config git adalah Perintah git config digunakan untuk mengatur konfigurasi global atau lokal Git: nama, email, editor, alias, dan lainnya. # Menampilkan semua branch npm init -y # Init project npm install express # Install package npm run dev # Jalankan script Istilah Terkait Git CLI GitHub Kembali ke Glosarium Pemrograman

GitHub

| | Devops
GitHub adalah Platform cloud untuk hosting repository Git. Menyediakan fitur kolaborasi: pull request, issues, actions (CI/CD), dan project management. # Push project ke GitHub git remote add origin https://github.com/user/repo.git git branch -M main git push -u origin main Istilah Terkait Git CI/CD DevOps Kembali ke Glosarium Pemrograman

Linux

| | Devops
Linux adalah Sistem operasi open-source yang dominan di server dan cloud computing. Distribusi populer: Ubuntu, Debian, CentOS. Developer wajib tahu dasar Linux. # Perintah dasar Linux ls -la # List file chmod 755 file # Ubah permission systemctl start nginx # Service management grep 'error' log.txt # Search text Istilah Terkait CLI DevOps Server Kembali ke Glosarium Pemrograman

SSH

| | Devops
SSH adalah Secure Shell — protokol untuk mengakses server jarak jauh secara aman melalui koneksi terenkripsi. Wajib untuk mengelola server Linux/VPS. # Koneksi SSH ke server ssh [email protected] ssh -i ~/.ssh/id_rsa [email protected] -p 2222 # Generate SSH key ssh-keygen -t rsa -b 4096 -C "[email protected]" Istilah Terkait Linux Server Security Kembali ke Glosarium Pemrograman

Terminal

| | Devops
Terminal adalah Interface berbasis teks untuk berinteraksi dengan sistem operasi. Developer menggunakan terminal untuk menjalankan command, script, Git, dan tools development lainnya. # Shortcut terminal yang berguna Ctrl+C # Hentikan proses Ctrl+D # Exit sesi Ctrl+Z # Suspend proses ↑/↓ # Navigasi history perintah tab # Autocomplete Istilah Terkait CLI Linux Bash Kembali ke Glosarium Pemrograman

Web Server

| | Devops
Web Server adalah Software yang melayani request HTTP dan mengirimkan konten web ke browser. Populer: Nginx (ringan, cepat), Apache (fleksibel, banyak fitur), Caddy (HTTPS otomatis). # Konfigurasi Nginx untuk Laravel server { listen 80; root /var/www/public; index index.php; location / { try_files $uri $uri/ /index.php?$query_string; } } Istilah Terkait Linux Server HTTPS Kembali ke Glosarium Pemrograman