Skip to content
Permalink
Browse files

capistrano setup, mysql configuration, mongrel cluster configuration

  • Loading branch information...
Johannes Opper
Johannes Opper committed Jul 2, 2009
1 parent 96d58eb commit 7be2a33719da6c7b875e7c911ec4e2b1932686c2
Showing with 46 additions and 13 deletions.
  1. +3 −0 Capfile
  2. +1 −5 app/views/interested_people/new.html.erb
  3. +11 −8 config/database.yml
  4. +23 −0 config/deploy.rb
  5. +8 −0 config/mongrel_cluster.yml
@@ -0,0 +1,3 @@
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy'
@@ -14,9 +14,5 @@
<p>
<%= f.submit 'Create' %>
</p>

<%= f.text_area :name, :class => 'mceEditor' %>

<% end %>

<%= link_to 'Back', interested_people_path %>
<% end %>
@@ -1,10 +1,11 @@
# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
adapter: mysql
database: echologic_dev
host: localhost
username: echologic_dev
password: SfLe5tSHxVEzRbMD

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
@@ -16,7 +17,9 @@ test:
timeout: 5000

production:
adapter: sqlite3
database: db/production.sqlite3
pool: 5
timeout: 5000
adapter: mysql
database: echologic
host: localhost
username: echologic
password: Q8TV4Hqn3PuveXf4

@@ -0,0 +1,23 @@
require 'mongrel_cluster/recipes'

set :application, "echologic"
set :repository, "http://echo-source.org/svn/echoLogic/trunk"

# If you aren't deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual location
# via the :deploy_to variable:
set :deploy_to, "htdocs/#{application}"

# user for the ssh connection
set :user, "echologic"

# locate the config file for mongrel clustering
set :mongrel_conf, "#{current_path}/config/mongrel_cluster.yml"

# If you aren't using Subversion to manage your source code, specify
# your SCM below:
# set :scm, :subversion

role :app, "85.214.99.166"
role :web, "85.214.99.166"
role :db, "85.214.99.166", :primary => true
@@ -0,0 +1,8 @@
---
cwd: C:/Program\ Files/ruby/bin
log_file: log/mongrel.log
port: "8000"
environment: production
#address: 127.0.0.1
pid_file: tmp/pids/mongrel.pid
servers: 3

0 comments on commit 7be2a33

Please sign in to comment.
You can’t perform that action at this time.