Here is what i am doing:

1st- On a ssh I create the rails app
dreamhost> rails -d mysql railsapp

2nd- On the DH panel in Domains I add a new subdomain called
 railsapp.mydomain.com

Ruby on Rails Passenger (mod_rails)? yes
webdir: railsapp/public

3rd- on the DH panel goodies database:

Create a database called
database: mydomain_railsapp
user: myuser
password: xxxx

4th- on my local computer:

local> cd lovd (this is a lovdbyless application downloaded in my
local machine)
local> sudo gem update
local> sudo rake:freeze:gems

local> capify .

I edit the config/deploy.rb as follows:

----------------------------------------
set :application, "webapp.mydomain.com"
set :repository,  "."

# 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 :user, "ubernetica"
set :deploy_to, "/home/#{user}/#{application}"
set :use_sudo, false

# If you aren't using Subversion to manage your source code, specify
# your SCM below:
set :scm, :git
set :deploy_via, :copy
set :copy_remote_dir, "/home/#{user}"

role :app, application
role :web, application
role :db,  application, :primary => true

namespace :deploy do
  desc "Restarting mod_rails with restart.txt"
  task :restart, :roles => :app, :except => { :no_release => true } do
    run "touch #{current_path}/tmp/restart.txt"
  end

  [:start, :stop].each do |t|
    desc "#{t} task is a no-op with mod_rails"
    task t, :roles => :app do ; end
  end
end"
----------------------------------------
execute:

local> git init
local> git add .
local> git commit -m "First import"
local> git log

5th- I edit the database.yml as this:
----------------------------------------

# MySQL.  Versions 4.1 and 5.0 are recommended.
#
# Install the MySQL driver:
#   gem install mysql
# On Mac OS X:
#   sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
# On Mac OS X Leopard:
#   sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-
config=/usr/local/mysql/bin/mysql_config
#       This sets the ARCHFLAGS environment variable to your native
architecture
# On Windows:
#   gem install mysql
#       Choose the win32 build.
#       Install MySQL and put its /bin directory on your path.
#
# And be sure to use new-style password hashing:
#   http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
  adapter: mysql
  encoding: utf8
  database: webapp_development
  username: root
  password:
  socket: /tmp/mysql.sock

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  adapter: mysql
  encoding: utf8
  database: webapp_test
  username: root
  password:
  socket: /tmp/mysql.sock

production:
  adapter: mysql
  encoding: utf8
  database: mydomain_railsapp
  username: myuser
  password: xxxx
  host: mysql.mydomain.com
----------------------------------

6th-execute on my local machine the following commands:

local> cap deploy:setup
local> cap deploy:check
local> cap deploy:cold

I wait 20 minutes to finish

everything works except the migration, so I have to login for ssh and
run the migration here is where the problems begin:

I tried to run the migration and some gems are missing so I install
them all, the result in the browser is this:

"The application has exited during startup (i.e. during the evaluation
of config/environment.rb). The error message may have been written to
the web server's log file. Please check the web server's  log file
(i.e. not the (Rails) application's log file) to find out why the
application exited.

Application root:
    /home/mydomain/railsapp"


I investigate and I believe the ferret server is the source of all my
problems so I read on this list that i have to start the ferret server
with:

script/ferret_server -e production start

I get:
no such file to load -- openssl


What i am doing wrong? wha I am missing.. please help me
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Lovd by Less" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lovdbyless?hl=en
Who loves ya baby?
-~----------~----~----~----~------~----~------~--~---

Reply via email to