Commit 951a4eb0 by tady

clear cache after deploy

parent 707fbf63
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
/db/*.sqlite3 /db/*.sqlite3
/db/*.sqlite3-journal /db/*.sqlite3-journal
*.sql
# Ignore all logfiles and tempfiles. # Ignore all logfiles and tempfiles.
/log/*.log /log/*.log
/tmp /tmp
...@@ -25,3 +27,6 @@ ...@@ -25,3 +27,6 @@
# secret files # secret files
/config/database.yml /config/database.yml
/config/settings.yml /config/settings.yml
/backup
/script/backup.sh
...@@ -57,9 +57,9 @@ namespace :deploy do ...@@ -57,9 +57,9 @@ namespace :deploy do
after :restart, :clear_cache do after :restart, :clear_cache do
on roles(:web), in: :groups, limit: 3, wait: 10 do on roles(:web), in: :groups, limit: 3, wait: 10 do
# Here we can do anything such as: # Here we can do anything such as:
# within release_path do within release_path do
# execute :rake, 'cache:clear' execute :rake, 'tmp:clear'
# end end
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment