Skip to content

Commit

Permalink
Upgrade 5.2 -> 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Lamontagne committed Jun 28, 2013
1 parent 97f1fba commit 9dec89d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

# Set github URL for gitlab
default['gitlab']['gitlab_url'] = "git://github.com/gitlabhq/gitlabhq.git"
default['gitlab']['gitlab_branch'] = "5-2-stable"
default['gitlab']['gitlab_branch'] = "5-3-stable"

# Database setup
default['gitlab']['database']['type'] = "mysql"
Expand Down
12 changes: 11 additions & 1 deletion recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,17 @@
git node['gitlab']['app_home'] do
repository node['gitlab']['gitlab_url']
reference node['gitlab']['gitlab_branch']
action :checkout
action :sync
notifies :run, "execute[db-migrate]", :immediate
user node['gitlab']['user']
group node['gitlab']['group']
end

execute "db-migrate" do
action :nothing
command "/usr/sbin/service gitlab stop; sleep 10s; bundle exec rake db:migrate"
cwd node['gitlab']['app_home']
environment ({"RAILS_ENV"=>"production"})
user node['gitlab']['user']
group node['gitlab']['group']
end
Expand Down

0 comments on commit 9dec89d

Please sign in to comment.