这是indexloc提供的服务,不要输入任何密码
Skip to content

yusufstawan/nginx_pm2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

VueJS PM2 + Nginx

/var/www/your_domain.id

deploy staging

npm install npm run build pm2 start npm --name "your_doman.id[8982]" -- run start:staging

deploy production

npm install npm run build pm2 start npm --name "your_doman.id[8982]" -- run start:production

/etc/nginx/sites-available

nginx sites-available

use example file your_domain.id in this repo

create symlink

sudo ln -s /etc/nginx/sites-available/your_domain.id /etc/nginx/sites-enabled

check nginx config

sudo nginx -t

restart nginx

sudo service nginx restart

ssl

sudo certbot --nginx -d your_domain.id

updat ssl

sudo certbot renew --dry-run

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published