forked from datauy/quesabes-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
capfile
42 lines (35 loc) · 846 Bytes
/
capfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
set :deploy_to, "/home/gaba/alaveteli"
set :app_branch, "quesabes.org"
set :theme, "quesabes-theme"
role :app, "tdas@tdas"
namespace :app do
desc "Update app code"
task :update_code do
run "cd #{deploy_to} && git pull origin #{app_branch}"
end
desc "Update theme"
task :update_theme do
run "cd #{File.join(deploy_to,'vendor','plugins',theme)} && git pull origin master"
end
desc "Touch restart.txt to reload app"
task :reload do
run "touch #{File.join(deploy_to,'tmp','restart.txt')}"
end
desc "Update the whole thing"
task :update do
update_theme
update_code
reload
end
end
desc "Update locales from Transifex"
namespace :update_tx do
task :default do
es
app::reload
end
desc "Update Spanish locale"
task :es do
run "cd #{deploy_to} && tx pull -l es -f"
end
end