Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
tailor
/
nuozheng
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
24ec6dd9
...
24ec6dd996e17467c234534c16dfd239c457d051
authored
2020-06-09 16:37:17 +0800
by
tailor
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
uploads共享文件夹
1 parent
3cb31ffc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
config/deploy.rb
config/deploy.rb
View file @
24ec6dd
...
...
@@ -42,6 +42,7 @@ namespace :deploy do
task
:mkdir_shared
do
on
roles
(
:web
)
do
execute
"mkdir -p
#{
shared_path
}
/uploads"
execute
"mkdir -p
#{
shared_path
}
/log"
execute
"mkdir -p
#{
shared_path
}
/assets"
execute
"mkdir -p
#{
shared_path
}
/tmp/pids"
...
...
@@ -54,6 +55,7 @@ namespace :deploy do
execute
"ln -sf
#{
shared_path
}
/log
#{
current_path
}
/log"
execute
"ln -sf
#{
shared_path
}
/assets
#{
current_path
}
/public/assets"
execute
"ln -sf
#{
shared_path
}
/tmp
#{
current_path
}
/tmp"
execute
"ln -sf
#{
shared_path
}
/uploads
#{
current_path
}
/public/uploads"
end
end
...
...
Please
register
or
sign in
to post a comment