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
8ad02b4b
Commit
8ad02b4b
authored
Apr 09, 2014
by
Francesco Donadon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Capistrano Task example for working in 3.x version
parent
41da3a3c
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 @
8ad02b4b
...
@@ -695,12 +695,14 @@ Here is an example for Capistrano:
...
@@ -695,12 +695,14 @@ Here is an example for Capistrano:
```
ruby
```
ruby
namespace
:deploy
do
namespace
:deploy
do
desc
"build missing paperclip styles"
desc
"build missing paperclip styles"
task
:build_missing_paperclip_styles
,
:roles
=>
:app
do
task
:build_missing_paperclip_styles
do
run
"cd
#{
release_path
}
; RAILS_ENV=production bundle exec rake paperclip:refresh:missing_styles"
on
roles
(
:app
)
do
execute
"cd
#{
current_path
}
; RAILS_ENV=production bundle exec rake paperclip:refresh:missing_styles"
end
end
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.
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