Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paperclip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
paperclip
Commits
25b2b124
Commit
25b2b124
authored
May 09, 2014
by
Prem Sichanugrist
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1510 from nonninz/fix-capistrano-readme-command
Update Capistrano Task example for working in 3.x version
parents
0d3027e7
8ad02b4b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
README.md
+5
-3
No files found.
README.md
View file @
25b2b124
...
...
@@ -695,12 +695,14 @@ Here is an example for Capistrano:
```
ruby
namespace
:deploy
do
desc
"build missing paperclip styles"
task
:build_missing_paperclip_styles
,
:roles
=>
:app
do
run
"cd
#{
release_path
}
; RAILS_ENV=production bundle exec rake paperclip:refresh:missing_styles"
task
:build_missing_paperclip_styles
do
on
roles
(
:app
)
do
execute
"cd
#{
current_path
}
; RAILS_ENV=production bundle exec rake paperclip:refresh:missing_styles"
end
end
end
after
(
"deploy:
update_code
"
,
"deploy:build_missing_paperclip_styles"
)
after
(
"deploy:
compile_assets
"
,
"deploy:build_missing_paperclip_styles"
)
```
Now you don't have to remember to refresh thumbnails in production every time you add a new style.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment