-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFonzfile
More file actions
33 lines (27 loc) · 710 Bytes
/
Fonzfile
File metadata and controls
33 lines (27 loc) · 710 Bytes
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
# Settings
user 'remote_user'
hosts 'stage.example.com'
path "/fullpath/to/folder"
git_repo 'git@gitaddress:repository.git'
branch 'master'
ruby_bin_path '/path/to/ruby/'
operation :setup, 'Setup server' do
tasks :setup_directory
end
operation :deploy, 'Deploy repository' do
tasks :clone_repository, :install_gems, :setup_database, :restart_app
end
operation :update, 'Update the repository on the server' do
tasks :update_repository, :install_gems, :update_database, :restart_app
end
operation :restart, 'Restart application' do
tasks :restart_app
end
# Tasks
# setup_directory
# clone_repository
# update_repository
# install_gems
# setup_database
# update_database
# restart_app