Month: November 2024

Code Push to EC2

User image: node:21 pipelines: default: – step: name: Build & Deploy caches: – node script: – echo "$SSH_PRIVATE_KEY" | tr -d 'r' | ssh-add – – mkdir -p ~/.ssh – chmod 700 ~/.ssh – echo "$EC2_SSH_PUBLIC_KEY" > ~/.ssh/authorized_keys – chmod 600 ~/.ssh/authorized_keys – git clone https://your-bitbucket-repository-url – cd your-project-directory – npm install – npm run […]

Auto Deploy Bitbucket to EC2

User automatic deploy bitbucket push to aws ec2 Assistant To set up automatic deployment from a Bitbucket push to an AWS EC2 instance, you can follow these general steps: ### 1. **Prepare the EC2 Instance** – Launch an EC2 instance with SSH access enabled. – Ensure that you have a security group with ports 22 […]

Bitbucket EC2 Laravel Vue

User Bitbucket aws ec2 laravel vue integration so that when we push local changes to bitbucket then it will automatically update aws ec2 ubunut site Assistant To integrate Bitbucket with AWS EC2 for automatic deployment of Laravel and Vue.js changes, you can set up a CI/CD pipeline using Bitbucket Pipelines. The goal is to push […]

Bitbucket Pipeline EC2 Deploy

User We have cloned the bibucket master branch to aws ec2 ubuntu php 8.3 and node 21 instance for laravel and vue app , now want to add bitbucket pipeline so bitbucket push automatically applied to ec2 Assistant To set up a Bitbucket Pipeline to automatically deploy your Laravel and Vue.js application to your AWS […]

Delete Bitbucket Pipeline

User HOw to delete bibucket plipeline Assistant To delete a Bitbucket Pipeline, follow these steps: 1. **Navigate to the Repository**: – Go to your Bitbucket account and open the repository where the pipeline is configured. 2. **Access Pipeline Settings**: – On the left sidebar, click on **Pipelines**. – Then click on **Settings** (the gear icon) […]

Remove cmdtest EC2

User remove cmdtest aws ec2 Assistant To remove the `cmdtest` package from an AWS EC2 instance, you can follow these steps: 1. **Connect to your EC2 instance**: First, connect to your EC2 instance using SSH: ssh -i /path/to/your/key.pem ec2-user@your-ec2-public-ip 2. **Uninstall `cmdtest`**: If `cmdtest` was installed via `apt` (on Ubuntu/Debian-based systems), you can remove it […]

Run npm dev on EC2

User we have setup larave vue breeze aws ec2 ubuntu How to setup that we always run npm run dev Assistant To ensure that `npm run dev` always runs on your AWS EC2 Ubuntu instance, you can set it up as a background process using `pm2` or configure it to run automatically upon server startup. […]

Git status explanation

User On branch master Your branch is up to date with 'origin/master'. Changes not staged for commit: (use "git add …" to update what will be committed) (use "git restore …" to discard changes in working directory) modified: .editorconfig modified: .env.example modified: .gitattributes modified: .gitignore modified: README.md modified: app/Http/Controllers/Admin/Auth/LoginController.php modified: app/Http/Controllers/Admin/Auth/RegisterController.php modified: app/Http/Controllers/Admin/PostController.php modified: app/Http/Controllers/Auth/AuthenticatedSessionController.php […]

Apache Site and Adminer Setup

User we have two conf file site.conf var/www/site second adminer.conf /var/www/adminer on aws ec2 ubuntu we want site open in root domain adminer in /adminer Assistant To configure your two separate applications (one for your main site and one for Adminer) on an AWS EC2 Ubuntu server using Apache, you'll need to set up your […]

Dynamic Input Box Management

User Jquery add dynamic min 3 input box require and give delete option with add new to others except if one remaining Assistant To achieve a dynamic form with jQuery where a minimum of 3 input boxes are required, and users can add or remove inputs (but can't go below 3), here's a solution: ### […]