-
-
Save nileshbetter/587654 to your computer and use it in GitHub Desktop.
[root@localhost foundation3]# ey recipes upload -e staging | |
Recipes uploaded successfully for staging | |
[root@localhost foundation3]# ey recipes apply -e staging | |
Uploaded recipes started for staging | |
[root@localhost foundation3]# ey deploy -e staging | |
Connecting to the server... | |
Beginning deploy for 'foundation3' in 'staging' on server... | |
~> Deploying revision 76bb098... resque settings update | |
~> Pushing code to all servers | |
~> Starting full deploy | |
~> Copying to /data/foundation3/releases/20100920092316 | |
~> Ensuring proper ownership | |
~> Symlinking configs | |
[WARNING] 262/022321 (22524) : config : 'disable-on-404' will be ignored for proxy 'cluster' (requires 'option httpchk'). | |
[WARNING] 262/022321 (22524) : config : log format ignored for proxy 'cluster' since it has no log address. | |
[WARNING] 262/022321 (22524) : config : monitor-uri will be ignored for proxy 'clusterssl' (needs 'mode http'). | |
[WARNING] 262/022321 (22524) : config : 'option httplog' not usable with proxy 'clusterssl' (needs 'mode http'). Falling back to 'option tcplog'. | |
[WARNING] 262/022321 (22524) : config : 'disable-on-404' will be ignored for proxy 'clusterssl' (requires 'option httpchk'). | |
[WARNING] 262/022321 (22524) : config : log format ignored for proxy 'clusterssl' since it has no log address. | |
[WARNING] 262/022321 (9988) : config : 'disable-on-404' will be ignored for proxy 'cluster' (requires 'option httpchk'). | |
[WARNING] 262/022321 (9988) : config : log format ignored for proxy 'cluster' since it has no log address. | |
~> Migrating: cd /data/foundation3/releases/20100920092316 && RAILS_ENV=staging RACK_ENV=staging MERB_ENV=staging rake db:migrate | |
[WARNING] 262/022321 (9988) : config : monitor-uri will be ignored for proxy 'clusterssl' (needs 'mode http'). | |
[WARNING] 262/022321 (9988) : config : 'option httplog' not usable with proxy 'clusterssl' (needs 'mode http'). Falling back to 'option tcplog'. | |
[WARNING] 262/022321 (9988) : config : 'disable-on-404' will be ignored for proxy 'clusterssl' (requires 'option httpchk'). | |
[WARNING] 262/022321 (9988) : config : log format ignored for proxy 'clusterssl' since it has no log address. | |
~> Symlinking code | |
~> Restarting app servers | |
~> Cleaning up old releases | |
Deploy complete |
commit 76bb0985b349e49fadaac682585b6915ce311db2
Author: Nilesh Avhad [email protected]
Date: Mon Sep 20 14:32:31 2010 +0530
resque settings update
diff --git a/cookbooks/resque/templates/default/resque.yml.erb b/cookbooks/resque/templates/default/resque.yml.erb
index 1701b80..9a26b86 100644
--- a/cookbooks/resque/templates/default/resque.yml.erb
+++ b/cookbooks/resque/templates/default/resque.yml.erb
@@ -1 +1 @@
-production: <%= @redis_hostname %>:6379
+<%= node[:enviornement][:framework_env] %>: <%= @redis_hostname %>:6379
[root@localhost cookbooks]#
root@localhost cookbooks]# git show
commit 76bb0985b349e49fadaac682585b6915ce311db2
Author: Nilesh Avhad [email protected]
Date: Mon Sep 20 14:32:31 2010 +0530
resque settings update
diff --git a/cookbooks/resque/templates/default/resque.yml.erb b/cookbooks/resque/templates/default/resque.yml.erb
index 1701b80..9a26b86 100644
--- a/cookbooks/resque/templates/default/resque.yml.erb
+++ b/cookbooks/resque/templates/default/resque.yml.erb
@@ -1 +1 @@
-production: <%= @redis_hostname %>:6379
+<%= node[:enviornement][:framework_env] %>: <%= @redis_hostname %>:6379
[root@localhost cookbooks]# git pull
Already up-to-date.
[root@localhost cookbooks]# git push
Everything up-to-date
[root@localhost cookbooks]#
domU-12-31-38-02-11-B2 ~ # ls -lh /etc/chef-custom/recipes/cookbooks/resque/templates/default/
total 12K
-rw-r--r-- 1 root root 561 Sep 20 02:37 monitrc.conf.erb
-rw-r--r-- 1 root root 72 Sep 20 02:37 resque.yml.erb
-rw-r--r-- 1 root root 23 Sep 20 02:37 resque_wildcard.conf.erb
domU-12-31-38-02-11-B2 ~ #
root@localhost foundstaging]# cd cookbooks/
[root@localhost cookbooks]# git branch -a
- master
origin/HEAD
origin/Phase0WorklingForMerge-14aug2010
origin/master
origin/phase-0
origin/phase1
[root@localhost cookbooks]#
change to be:
<%= @rails_env %>: <%= @redis_hostname %>:6379
and add :rails_env here:
node[:applications].each do |app, data|
template "/data/#{app}/shared/config/resque.yml" do
owner node[:owner_name]
group node[:owner_name]
mode 0644
source "resque.yml.erb"
variables({
:redis_hostname => node[:db_host]
:rails_env => node[:environment][:framework_env]
})
[root@localhost foundation3]# cd cookbooks/
[root@localhost cookbooks]# ls
emacs exim eybackup_slave jruby main mongodb redis solr ssh_tunnel sunspot
emerge extra_symlink eybackup_verbose logrotate memcached postgres resque sphinx ssmtp varnish
[root@localhost cookbooks]# git status
On branch master
nothing to commit (working directory clean)
[root@localhost cookbooks]#