mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
First checkin
This commit is contained in:
parent
f207e2c8b7
commit
90b30db9e8
260 changed files with 37349 additions and 0 deletions
16
config/deploy.rb
Normal file
16
config/deploy.rb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
namespace :paperclip do
|
||||
|
||||
desc "Create a storage folder for Paperclip attachment in shared path"
|
||||
task :create_storage do
|
||||
run "mkdir -p #{shared_path}/storage"
|
||||
end
|
||||
|
||||
desc "Link the Paperclip storage folder into the current release"
|
||||
task :link_storage do
|
||||
run "ln -nfs #{shared_path}/storage #{release_path}/storage"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
before "deploy:setup", 'paperclip:create_storage'
|
||||
after "deploy:update_code", "paperclip:link_storage"
|
||||
Loading…
Add table
Add a link
Reference in a new issue