mirror of
https://github.com/chenasraf/snpr.git
synced 2026-05-18 01:39:01 +00:00
removing paths initializer
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -20,7 +20,6 @@ solr/pids
|
||||
config/database.yml
|
||||
vendor/bundle
|
||||
vendor/cache
|
||||
public/data
|
||||
coverage
|
||||
hiredis/
|
||||
log/
|
||||
|
||||
@@ -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
|
||||
@@ -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
0
public/data/zip/.gitkeep
Normal file
Reference in New Issue
Block a user