Please help with error deployment

0 views
Skip to first unread message

cyberf

unread,
Feb 9, 2009, 1:52:46 PM2/9/09
to ey-express
Hello out there. This is my first deployment ever. I must be doing
something wrong. Please help!!!

I am getting this error when executing "cap express deploy:long"

* executing "cd /data/rails/releases/20090209184442; rake
RAILS_ENV=express db:migrate"
servers: ["192.168.0.16"]
[192.168.0.16] executing command
** [out :: 192.168.0.16] (in /data/rails/releases/20090209184442)
** [out :: 192.168.0.16] rake aborted!
** [out :: 192.168.0.16]
** [out :: 192.168.0.16] No such file or directory - /data/rails/
releases/20090209184442/config/environments/express.rb
** [out :: 192.168.0.16]
** [out :: 192.168.0.16]
** [out :: 192.168.0.16] (See full trace by running task with --
trace)
** [out :: 192.168.0.16]

And a few lines below:
failed: "sh -c \"cd /data/rails/releases/20090209184442; rake
RAILS_ENV=express db:migrate\"" on 192.168.0.16

This is my deploy.rb:

require 'eycap/recipes'
set :express_ip, "192.168.0.16"
set :password, "ncoUhAqQg"

set :scm, :subversion
set :keep_releases, 5
set :repository, 'http://######/####/myapp'
set :scm_username, '#########'
set :scm_password, '##########'
set :user, 'express'
set :password, 'ncoUhAqQg'
set :deploy_via, :export
set :runner, 'express'
ssh_options[:paranoid] = false

set :sql_pass, '77zxcvb77'
set :application, 'rails'
set :keep_releases, 5
set :monit_group, 'rails'
set :deploy_to, '/data/rails'
set :runner, 'express'
set :express_database, 'rails_prod'
set :sql_user, 'express_db'
set :sql_host, 'localhost'
default_run_options[:pty] = true

task :express do
role :web, "#{express_ip}"
role :app, "#{express_ip}"
role :db, "#{express_ip}", :primary => true
set :rails_env, "express"
set :environment_database, Proc.new { express_database }
end

....and the rest of the default deploy.rb file

Edward Muller

unread,
Feb 9, 2009, 3:24:06 PM2/9/09
to ey-expres...@googlegroups.com
If you rename your production.rb to express.rb I think it will work.

Disclaimer: I'm not one of EY's rails gurus, just the guy who put
together the base Express image and made it into a VM.
--
Edward Muller
Engine Yard Inc. : Support, Scalability, Reliability
+1.866.518.9273 x209 - Mobile: +1.417.844.2435
IRC: edwardam - XMPP/GTalk: emu...@engineyard.com
Pacific/US
Reply all
Reply to author
Forward
0 new messages