Skip to content

Commit

Permalink
In mconf-web-conf: separated the deploy action from the checkout acti…
Browse files Browse the repository at this point in the history
…on. Almost 100%.
  • Loading branch information
daronco committed Sep 29, 2011
1 parent ccf3fd1 commit 170f15c
Show file tree
Hide file tree
Showing 10 changed files with 121 additions and 105 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -21,3 +21,4 @@ db/*.sqlite3*
tmp/*
.redcar
db/data.yml
pids/*
3 changes: 2 additions & 1 deletion Gemfile
Expand Up @@ -61,6 +61,7 @@ group :development, :test do
end

group :production do
gem 'god'
gem 'god', '0.11.0'
gem 'passenger', '3.0.7'
gem 'exception_notification'
end
10 changes: 10 additions & 0 deletions Gemfile.lock
Expand Up @@ -98,6 +98,7 @@ GEM
configatron (2.8.0)
yamler (>= 0.1.0)
crack (0.1.8)
daemon_controller (0.2.6)
daemons (1.1.4)
delayed_job (2.1.4)
activesupport (~> 3.0)
Expand All @@ -109,6 +110,7 @@ GEM
exception_notification (2.4.1)
exception_notification_rails3 (1.2.0)
factory_girl (1.3.3)
fastthread (1.0.7)
fckeditor (0.1.0)
feed-normalizer (1.5.2)
hpricot (>= 0.6)
Expand All @@ -121,6 +123,7 @@ GEM
garb (0.9.1)
activesupport (>= 2.2.0)
crack (>= 0.1.6)
god (0.11.0)
highline (1.6.2)
hoe (2.9.4)
rake (>= 0.8.7)
Expand All @@ -147,6 +150,11 @@ GEM
net-ssh-gateway (1.1.0)
net-ssh (>= 1.99.1)
nokogiri (1.4.1)
passenger (3.0.7)
daemon_controller (>= 0.2.5)
fastthread (>= 1.0.1)
rack
rake (>= 0.8.1)
pdf-writer (1.1.8)
color (>= 1.4.0)
transaction-simple (~> 1.3)
Expand Down Expand Up @@ -241,13 +249,15 @@ DEPENDENCIES
ffaker
fuubar
garb
god (= 0.11.0)
hoe
hpricot
htmlentities
httparty
jquery-rails (>= 0.2.6)
mysql2 (~> 0.2.0)
nokogiri (= 1.4.1)
passenger (= 3.0.7)
pdf-writer
populator
prism
Expand Down
2 changes: 1 addition & 1 deletion config/database.yml.example
Expand Up @@ -16,6 +16,6 @@ test:
production:
adapter: mysql2
database: mconf_production # MySQL database name
username: mconf # MySQL database user
username: root # MySQL database user
password: mysecretpass # MySQL database password
socket: /var/run/mysqld/mysqld.sock
6 changes: 3 additions & 3 deletions config/database.yml.mysql.example
Expand Up @@ -4,7 +4,7 @@ development:
adapter: mysql2
database: mconf_development # mysql database name
username: root # mysql database user
password: # mysql database password
password: secret-pass # mysql database password
socket: /var/run/mysqld/mysqld.sock

# Warning: The database defined as 'test' will be erased and
Expand All @@ -14,12 +14,12 @@ test:
adapter: mysql2
database: mconf_test # mysql database name
username: root # mysql database user
password: # mysql database password
password: secret-pass # mysql database password
socket: /var/run/mysqld/mysqld.sock

production:
adapter: mysql2
database: mconf_production # mysql database name
username: root # mysql database user
password: # mysql database password
password: secret-pass # mysql database password
socket: /var/run/mysqld/mysqld.sock
2 changes: 1 addition & 1 deletion config/deploy.rb
Expand Up @@ -18,7 +18,7 @@
# RVM bootstrap
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
require "rvm/capistrano"
set :rvm_ruby_string, '1.9.2@mconf'
set :rvm_ruby_string, '1.9.2-p290@mconf'
set :rvm_type, :user

# bundler bootstrap
Expand Down
2 changes: 1 addition & 1 deletion config/god/delayed_job.god
Expand Up @@ -10,7 +10,7 @@ RAILS_ENV = "production"
w.log = "#{RAILS_ROOT}/log/god_delayed_job.log"
w.start_grace = 30.seconds
w.restart_grace = 30.seconds
# w.pid_file = "#{RAILS_ROOT}/shared/pids/delayed_job.pid"
w.pid_file = "#{RAILS_ROOT}/pids/delayed_job.pid"

w.behavior(:clean_pid_file)

Expand Down
4 changes: 2 additions & 2 deletions config/god/init_script
Expand Up @@ -35,7 +35,7 @@ RETVAL=0
case "$1" in
start)
echo -n "Starting $DESC: "
$GOD_BIN -c $GOD_CONFIG -l $GOD_LOG
$GOD_BIN -c $GOD_CONFIG -l $GOD_LOG --no-syslog --log-level warn
RETVAL=$?
echo "$NAME."
;;
Expand All @@ -48,7 +48,7 @@ case "$1" in
restart)
echo -n "Restarting $DESC: "
$GOD_BIN quit
$GOD_BIN -c $GOD_CONFIG -l $GOD_LOG
$GOD_BIN -c $GOD_CONFIG -l $GOD_LOG --no-syslog --log-level warn
RETVAL=$?
echo "$NAME."
;;
Expand Down
Empty file added log/.gitkeep
Empty file.

0 comments on commit 170f15c

Please sign in to comment.