Month: November 2024

Pull Specific Folders Git

User We have master branch in bitubcket and its cloned in hosting ssh But when we pull to hosting ssh we want only take from specific folders Assistant To pull changes from specific folders in your Bitbucket repository to your hosting environment via SSH, you can follow these steps: ### Method 1: Use Sparse Checkout […]

Create Branch with Folders

User create branch of master but only put some folders in it Assistant To create a new branch from the `master` branch and include only specific folders, you can follow these steps using Git: 1. **Check out the master branch** (if you're not already on it): git checkout master 2. **Create a new branch** (replace […]

Git Branch Push Error

User root@8456e834f38c:/var/www/html# git checkout -b minimal-pull Switched to a new branch 'minimal-pull' root@8456e834f38c:/var/www/html# git branch master * minimal-pull root@8456e834f38c:/var/www/html# git add app resources routes root@8456e834f38c:/var/www/html# git commit -m "Minimal pull" On branch minimal-pull You are in a sparse checkout with 100% of tracked files present. nothing to commit, working tree clean root@8456e834f38c:/var/www/html# git push -u […]

Restrict Git Pull Access

User allow git pull only from specific folder Assistant To allow `git pull` (or any other Git commands) from a specific folder, you can implement a few strategies depending on your requirements and setup. Here are some options: ### 1. **Using Submodules** If the specific folder should represent a separate Git repository, you can use […]

Docker Vite HMR Configuration

User import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; import vue from '@vitejs/plugin-vue'; export default defineConfig({ plugins: [ laravel({ input: ['resources/js/app.js', 'resources/js/app-backend.js'], refresh: true, }), vue({ template: { transformAssetUrls: { base: null, includeAbsolute: false, }, }, }), ], server: { host: '0.0.0.0', // Allows access from the Docker container port: 5173, // Port […]

Install Node in Docker

User version: '3.8' services: app: build: context: . dockerfile: Dockerfile container_name: laravel_app volumes: – ./shareyourthoughts:/var/www/html networks: – laravel_network depends_on: – db ports: – "8080:80" # Change this to the desired host port db: image: mysql:8.0 container_name: laravel_db environment: MYSQL_DATABASE: laravel MYSQL_USER: laravel MYSQL_PASSWORD: password MYSQL_ROOT_PASSWORD: rootpassword volumes: – db_data:/var/lib/mysql – ./my.cnf:/etc/mysql/my.cnf – ./init-scripts:/docker-entrypoint-initdb.d networks: – […]

Professional Web Development Summary

User I am a Website Design & Development professional with over 10 years of experience, proficient in both front-end and back-end technologies. I am comfortable working independently or as part of a team, depending on the project's needs. Key Highlights: 10 years of experience in web technologies, specializing in: PHP, WordPress, Laravel, CakePHP, CodeIgniter Angular […]

MySQL Timeout in Docker

User Sometime docker work on one system and in other system mysql timeout error Assistant MySQL timeout errors in Docker can occur for various reasons, especially when moving setups between different systems. Below are some possible causes and solutions: — ### **Causes and Solutions** #### 1. **Resource Allocation** – **Cause**: Docker containers may not have […]

MySQL Connection Refused Error

User SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select * from `sessions` where `id` = hZfPL6A6qqYZjl2QZWsUAW3orXDcmaVJQAhIIob2 limit 1) Assistant The `SQLSTATE[HY000] [2002] Connection refused` error typically occurs when your Laravel application is unable to connect to the MySQL database. Here are some common causes and their solutions: — ### **1. Database Configuration Issue** – **Check […]

Reduce LCP Divi Hero

User We gave divi builder hero section Now I want to reduce lcp for this Assistant To reduce the **Largest Contentful Paint (LCP)** for the hero section in your Divi Builder setup, follow these best practices: ### 1. **Optimize Hero Image** – **Use Optimized Formats**: Convert the hero image to **WebP** format if not already […]