美文网首页
rails_pack.sh

rails_pack.sh

作者: 求墨者 | 来源:发表于2022-07-20 13:10 被阅读0次
    project_name=melon
    
    time=$(date +'%Y%m%d-%H%M%S')
    dist=tmp/$project_name-$time.tar.gz
    deploy_dir=~/packspaces/$project_name-deploy
    
    yes | rm tmp/$project_name-*.tar.gz; 
    yes | rm $deploy_dir/$project_name-*.tar.gz;
    
    tar --exclude="tmp/cache/*" -czv -f $dist *
    mkdir -p $deploy_dir
    mv $dist $deploy_dir
    echo $time > $deploy_dir/version
    echo 'DONE!'
    echo $deploy_dir
    

    相关文章

      网友评论

          本文标题:rails_pack.sh

          本文链接:https://www.haomeiwen.com/subject/zpieirtx.html