GitHub - soheejjang0912/excuse-me
| λ¨κ³ | μμ | λͺ λ Ήμ΄ / λ΄μ© | μν |
|---|---|---|---|
| 0 | EC2 μΈμ€ν΄μ€ μμ± | Ubuntu 22.04 / 보μ κ·Έλ£Ή(22, 80, 443 μ΄κΈ°) | β |
| 1 | SSH μ μ | ssh -i excuse-me-key.pem ubuntu@<EC2_IP> |
β |
| 2 | κΈ°λ³Έ μΈν | sudo apt update && sudo apt upgrade -ysudo apt install -y build-essential curl |
β |
| 3 | Node.js νμΈ | node -v (v20.x)npm -v (10.x) |
β |
| 4 | νλ‘μ νΈ κ°μ Έμ€κΈ° | git clone <https://github.com/soheejjang0912/excuse-me.git> |
β |
| 5 | νκ²½λ³μ μ€μ | .env β NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY |
β |
| 6 | λΉλ & μ€ν | npm ci && npm run buildpm2 start npm --name "excuse-me" -- start |
β |
| 7 | Nginx μ€μΉ & μ€μ | /etc/nginx/sites-available/excuse-me μμ± ν λ§ν¬ |
β |
| 8 | Elastic IP μ°κ²° | EC2μ κ³ μ IP μ°κ²° | β |
| 9 | λλ©μΈ μ°κ²° | excuseme.cloud β A λ μ½λ |
β |
| 10 | SSL μΈμ¦μ λ°κΈ | sudo certbot --nginx -d excuseme.cloud -d www.excuseme.cloud |
β |
| 11 | GitHub Actions μλ λ°°ν¬ | .github/workflows/deploy.yml μμ± |
β |
ssh -i excuse-me-key.pem ubuntu@<EC2_IP>