#!/usr/bin/env bash
cd /data/jenkins_home/workspace/feifan-front-admin/dist
pwd
ls
rm -rf /data/projects/feifan/admin
cp -r /data/jenkins_home/workspace/feifan-front-admin/dist /data/projects/feifan/admin
chmod -R 777 /data/projects/feifan/admin

nginx -t
nginx -s reload
