Comments (4)
临时文件用完删除就可以,没必要多保存一份。
在部署出错的时候应该也能够自动清理tmp/ltmp下生成的临时文件。
from catapult.
upload_project上传到remote得临时目录已经清除。
cateester had fix it。
剩下还有一些其他操作会产生临时文件,如svn export到本地的目录
from catapult.
有个小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.
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)
- support git HOT 1
- code refactor for timeline.py HOT 1
- load project env in local task HOT 1
- support configurable rcs user and password HOT 2
- support linux command
- specific project owner HOT 2
- build a deploy chain that can be used in rollback HOT 1
- check version consistency among servers HOT 1
- project.upload_project do tar/untar/remove many times in localhost HOT 3
- support myenv in pre/post actions
- host auto discovery HOT 2
- webadmin console HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from catapult.