npm install
npx tailwindcss -i ./assets/css/main.css -o ./assets/css/style.css --watch
npm rebuild
- pull repository to host, recommended setup in /var/www/
cd /var/www
git pull origin main
# rename file if need
mv metadap_landing_page new_name
- go to folder /etc/nginx
cd /etc/nginx/
- create file in sites-available with name by hostname.endpoint eg:
nano metadap.com
- setup host, eg:
server {
listen 80;
listen [::]:80;
server_name metapdap.com www.metadap.com;
root /var/www/metadap.com;
index index.php index.html index.htm index.nginx-debian.html;
client_max_body_size 100M;
location / {
try_files $uri $uri/ =404;
}
}
- link file to sites-enabled
sudo ln -s /etc/nginx/sites-available/metadap.com /etc/nginx/sites-enabled/
- set up host ip link with domain
- run certbot to setup ssl, more info in https://certbot.eff.org/pages/help
certbot
- restart nginx
sudo systemctl restart nginx