npm install
npm run serve
npm run build
npm run test
npm run lint
修改/etc/nginx/sites-enabled/default
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/dist; #根目录
index index.html;
server_name _;
location / {
root /var/www/dist; #根目录
try_files $uri $uri/ /index.html =404;
}
}
sudo /etc/init.d/nginx restart