FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
tip4commit/config/deploy.rb at master · bashgnu/tip4commit · GitHub
bashgnu
tip4commit
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
tip4commit
/
config
/
deploy.rb
Copy path
More file actions
More file actions
Latest commit
History
History
History
41 lines (32 loc) · 969 Bytes
Breadcrumbs
tip4commit
/
config
/
deploy.rb
Copy path
File metadata and controls
41 lines (32 loc) · 969 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
set
:application
,
't4c'
set
:repo_url
,
'git@github.com:tip4commit/tip4commit.git'
# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }
set
:deploy_to
,
'/home/apps/t4c'
set
:scm
,
:git
set
:rvm_type
,
:user
set
:rvm_ruby_version
,
'2.4.2'
set
:rvm_custom_path
,
'~/.rvm'
set
:format
,
:pretty
# set :log_level, :debug
# set :pty, true
set
:linked_files
,
%w[
config/database.yml
config/config.yml
]
set
:linked_dirs
,
%w[
log
tmp
]
# set :default_env, { path: "/opt/ruby/bin:$PATH" }
set
:keep_releases
,
5
namespace
:deploy
do
desc
'Restart application'
task
:restart
do
on
roles
(
:app
)
,
in
:
:sequence
,
wait
:
5
do
execute
:touch
,
release_path
.
join
(
'tmp/restart.txt'
)
end
end
after
:restart
,
:clear_cache
do
on
roles
(
:web
)
,
in
:
:groups
,
limit
:
3
,
wait
:
10
do
# Here we can do anything such as:
# within release_path do
# execute :rake, 'cache:clear'
# end
end
end
after
:finishing
,
'deploy:cleanup'
end
Back
|
FazBrowse Home
|
New Git URL