Deploy nhanh

Hướng dẫn test trên VPS

Upload nguyên thư mục này lên server, trỏ web server vào thư mục chứa index.html.

  1. Copy files
    scp -r . user@YOUR_VPS_IP:/var/www/html/
  2. Nginx (ví dụ)
    server {
        listen 80;
        server_name _;
        root /var/www/html;
        index index.html;
        location / {
            try_files $uri $uri/ =404;
        }
    }
  3. Mở trình duyệt

    Vào http://YOUR_VPS_IP/. Nếu thấy trang này thì HTML đã được serve. Nếu CSS/JS load thì static files OK.