老项目占地比较大的原因是release文件夹里有.git 目录



10:49 [[email protected]]$ du -hs *


78M    ott-cms-guide
147M    ott-remote-cms
242M    ott-tv-cms
1.2G    ott-wildfire-cms
758M    tv-cibn-cms
118M    tv-ycew-cms
162M    virtual-reality-cms

tty:[4] jobs:[0] cwd:[/opt/app/ruby]
10:49 [[email protected]]$ du -hs m-cms-for-tv/*
0    m-cms-for-tv/current
721M    m-cms-for-tv/releases
20M    m-cms-for-tv/shared
tty:[4] jobs:[0] cwd:[/opt/app/ruby]
10:50 [[email protected]]$ du -hs m-cms-for-tv/releases/*
80M    m-cms-for-tv/releases/20150410072949
80M    m-cms-for-tv/releases/20150410073937
80M    m-cms-for-tv/releases/20150414065535
80M    m-cms-for-tv/releases/20150414070107
80M    m-cms-for-tv/releases/20150423034731
81M    m-cms-for-tv/releases/20150511032009
81M    m-cms-for-tv/releases/20150513062949
81M    m-cms-for-tv/releases/20150617092032
81M    m-cms-for-tv/releases/20150618083013
tty:[4] jobs:[0] cwd:[/opt/app/ruby]
10:50 [[email protected]]$ ll m-cms-for-tv/releases/20150410072949/
总用量 88
drwxrwxrwx 8 1000 1000 4096 4月  10 2015 app
-rwxrwxrwx 1 1000 1000  655 4月  10 2015 backup_log_files.rb
-rwxrwxrwx 1 1000 1000  269 4月  10 2015 Capfile
drwxrwxrwx 5 1000 1000 4096 4月  10 2015 config
-rwxrwxrwx 1 1000 1000  153 4月  10 2015 config.ru
drwxrwxrwx 3 1000 1000 4096 4月  10 2015 db
-rwxrwxrwx 1 1000 1000 1263 4月  10 2015 Gemfile
-rwxrwxrwx 1 1000 1000 5679 4月  10 2015 Gemfile.lock
-rwxrwxrwx 1 root root    0 4月  10 2015 httparty.log
drwxrwxrwx 4 1000 1000 4096 4月  10 2015 lib
lrwxrwxrwx 1 root root   37 4月  10 2015 log -> /opt/app/ruby/m-cms-for-tv/shared/log
drwxrwxrwx 5 1000 1000 4096 4月  10 2015 operations
drwxrwxrwx 7 1000 1000 4096 4月  10 2015 public
-rwxrwxrwx 1 1000 1000  281 4月  10 2015 Rakefile
-rwxrwxrwx 1 1000 1000    1 4月  10 2015 REVISION
-rwxrwxrwx 1 1000 1000   26 4月  10 2015 robots.txt
drwxrwxrwx 2 1000 1000 4096 4月  10 2015 script
drwxrwxrwx 7 1000 1000 4096 4月  10 2015 spec
-rwxrwxrwx 1 1000 1000  630 4月  10 2015 start_tasks
-rwxrwxrwx 1 1000 1000  132 4月  10 2015 test_basic.rb
-rwxrwxrwx 1 1000 1000   80 4月  10 2015 test_map.rb
drwxrwxrwx 5 1000 1000 4096 4月  10 2015 tmp
drwxrwxrwx 3 1000 1000 4096 4月  10 2015 vendor
tty:[4] jobs:[0] cwd:[/opt/app/ruby]
10:50 [[email protected]]$ ll -a -S m-cms-for-tv/releases/20150410072949/
总用量 112
-rwxrwxrwx  1 1000 1000 5679 4月  10 2015 Gemfile.lock
drwxrwxrwx 14 1000 1000 4096 4月  10 2015 .
drwxrwxrwx 11 root root 4096 6月  18 2015 ..
drwxrwxrwx  8 1000 1000 4096 4月  10 2015 app
drwxrwxrwx  5 1000 1000 4096 4月  10 2015 config
drwxrwxrwx  3 1000 1000 4096 4月  10 2015 db
drwxrwxrwx  8 1000 1000 4096 4月  10 2015 .git
drwxrwxrwx  4 1000 1000 4096 4月  10 2015 .idea
drwxrwxrwx  4 1000 1000 4096 4月  10 2015 lib
drwxrwxrwx  5 1000 1000 4096 4月  10 2015 operations
drwxrwxrwx  7 1000 1000 4096 4月  10 2015 public
drwxrwxrwx  2 1000 1000 4096 4月  10 2015 script
drwxrwxrwx  7 1000 1000 4096 4月  10 2015 spec
drwxrwxrwx  5 1000 1000 4096 4月  10 2015 tmp
drwxrwxrwx  3 1000 1000 4096 4月  10 2015 vendor
-rwxrwxrwx  1 1000 1000 1263 4月  10 2015 Gemfile
-rwxrwxrwx  1 1000 1000  655 4月  10 2015 backup_log_files.rb
-rwxrwxrwx  1 1000 1000  630 4月  10 2015 start_tasks
-rwxrwxrwx  1 1000 1000  606 4月  10 2015 .gitignore
-rwxrwxrwx  1 1000 1000  281 4月  10 2015 Rakefile
-rwxrwxrwx  1 1000 1000  269 4月  10 2015 Capfile
-rwxrwxrwx  1 1000 1000  153 4月  10 2015 config.ru
-rwxrwxrwx  1 1000 1000  132 4月  10 2015 test_basic.rb
-rwxrwxrwx  1 1000 1000   80 4月  10 2015 test_map.rb
lrwxrwxrwx  1 root root   37 4月  10 2015 log -> /opt/app/ruby/m-cms-for-tv/shared/log
-rwxrwxrwx  1 1000 1000   26 4月  10 2015 robots.txt
-rwxrwxrwx  1 1000 1000    9 4月  10 2015 .rspec
-rwxrwxrwx  1 1000 1000    1 4月  10 2015 REVISION
-rwxrwxrwx  1 root root    0 4月  10 2015 httparty.log
tty:[4] jobs:[0] cwd:[/opt/app/ruby]
10:50 [[email protected]]$ du -hs m-cms-for-tv/releases/20150410072949/.git
67M    m-cms-for-tv/releases/20150410072949/.git


你可能感兴趣的:(老项目占地比较大的原因是release文件夹里有.git 目录)