Blog

Optimizing NPM Build EC2

User npm run build is very slow ec2 aws free tier Assistant If your `npm run build` is slow on an EC2 instance, especially on the AWS Free Tier, here are several things you can try to improve the build speed: ### 1. **Instance Type and Resources**: – **Free Tier Limitations**: AWS Free Tier instances […]

Slow npm Build Optimization

User npm run build very slow on aws ec2 Assistant If `npm run build` is running slowly on your AWS EC2 instance, there are several factors that could be causing this issue. Here are some potential solutions and optimizations you can try: ### 1. **Use More Powerful EC2 Instance** Ensure that your EC2 instance has […]

Vite Build Optimization Tips

User npm run build command is bvery slow vite.config Assistant If your `npm run build` command using Vite is running very slowly, there are several optimizations you can make to your `vite.config.js` and project setup to improve build performance. Here's a checklist of potential optimizations: ### 1. **Enable `build.sourcemap` Only for Development** If source maps […]

Check Bitbucket Code EC2

User How to check that bitbucket code has been pushed to ec2 instances Assistant To check if your Bitbucket code has been pushed to your EC2 instance, you can follow these steps: ### 1. **SSH into your EC2 instance** First, you need to SSH into your EC2 instance using the terminal or an SSH client. […]

Install Yarn Ubuntu

User install yarn ubuntu Assistant To install Yarn on Ubuntu, follow these steps: 1. **Update package list**: sudo apt update 2. **Install prerequisites**: Install `curl` if it's not already installed: sudo apt install curl 3. **Add Yarn's official APT repository**: Import the Yarn GPG key: curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo tee /etc/apt/trusted.gpg.d/yarn.asc Add the Yarn […]

EC2 Build Optimization

User npm run build on aws ec2 taking time Assistant If running `npm run build` on your AWS EC2 instance is taking longer than expected, here are a few possible reasons and optimizations you can consider: ### 1. **Instance Size and Resources** – Ensure that your EC2 instance has enough resources (CPU, memory) to handle […]

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 […]