removing paths initializer

This commit is contained in:
Helge Rausch
2013-09-08 09:41:47 +02:00
parent aa10db3b1e
commit afc15ffa25
4 changed files with 1 additions and 13 deletions

1
.gitignore vendored
View File

@@ -20,7 +20,6 @@ solr/pids
config/database.yml
vendor/bundle
vendor/cache
public/data
coverage
hiredis/
log/

View File

@@ -1,12 +0,0 @@
# creates the paths needed
%w[
public/data/zip
].each do |path|
dirs = path.split('/')
dirs.size.times do |i|
new_path = Rails.root.to_s + '/' + dirs[0..i].join('/')
Dir.mkdir(new_path) unless File.directory?(new_path)
end
end

View File

@@ -8,6 +8,7 @@ namespace :deploy do
ln("#{shared_path}/config/key_mendeley.txt", "#{release_path}/key_mendeley.txt")
ln("#{shared_path}/config/key_plos.txt", "#{release_path}/key_plos.txt")
ln("#{shared_path}/data", "#{release_path}/public/data")
mkdir("#{shared_path}/data/zip")
mkdir("#{shared_path}/assets")
ln("#{shared_path}/assets", "#{release_path}/public/assets")
end

0
public/data/zip/.gitkeep Normal file
View File