Git Product home page Git Product logo

Comments (4)

 avatar commented on July 23, 2024

临时文件用完删除就可以,没必要多保存一份。
在部署出错的时候应该也能够自动清理tmp/ltmp下生成的临时文件。

from catapult.

huanghao avatar huanghao commented on July 23, 2024

upload_project上传到remote得临时目录已经清除。
cateester had fix it。

剩下还有一些其他操作会产生临时文件,如svn export到本地的目录

from catapult.

huanghao avatar huanghao commented on July 23, 2024

有个小bug,那行rm不能直接加在后面,如果推送的机器包含localhost,
workcopy的目录和upload以后的目录名字一样,如果删除掉了,workcopy也就没有
后面一台推送的时候就会报错找不到workcopy。

1)upload_project在源和目标都是同一台机器的同一个目录时,没有报错,估计做判断了,要看一下源码
2)需要把workcopy和目标的名字弄成不一样,而且是临时性的,就可以删除了

relink_current_rel('releases/%s' % pid)
sudo('rm -rf %s' % os.path.join(myenv.tmp, pid))

from catapult.

huanghao avatar huanghao commented on July 23, 2024

done!

local temp file:
add a function "unlink" to remove them at program exit

remote temp file:
add try/finally block to remove remote temp file when it is useless

from catapult.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.