Skip to content

Latest commit

 

History

History
48 lines (41 loc) · 1.55 KB

README.md

File metadata and controls

48 lines (41 loc) · 1.55 KB

Portfolio Website

This is a personal portfolio project designed to showcase my personal background, skills, and projects.
While it serves as a portfolio, the main objective is to gain experience in setting up a web server and deploying a static website to a cloud platform.

Technologies Used

Category Technology
VM Amazon EC2 (Ubuntu platform)
Web server Nginx
Process manager PM2
Frontend TypeScript, Next.js, Tailwind CSS
HTTPS Certbot
DNS DNS settings through Namecheap

PM2 Configuration

  • Used PM2 for automatic restarts and monitoring.
  • This script is used for deploying the application to an AWS EC2 instance from local environment.
module.exports = {
    apps: [
        {
            script: 'npm start',
        },
    ],

    deploy: {
        production: {
            user: 'ubuntu',
            host: 'server_ip',
            ref: 'origin/main',
            repo: 'https://github.com/username/repository.git',
            path: '/path/to/deployment',
            'pre-deploy-local': '',
            'post-deploy':
                'source ~/.nvm/nvm.sh && npm install && npm run build && pm2 reload ecosystem.config.js --env production',
            'pre-setup': '',
            ssh_options: 'ForwardAgent=yes',
        },
    },
};