Initial deployment trouble

I have a Rails 1.1.2 app that’s far along in development using
LoginEngine and UserEngine. The engines were installed on the
development box early on.

Now when I deploy to a fresh machine I get this:

$ rake db:migrate:engines
(in /usr/local/www/rails-apps/flhp/releases/20060711210158)
rake aborted!
Mysql::Error: Table ‘flhp_production.permissions’ doesn’t exist: SHOW
FIELDS FROM permissions

(See full trace by running task with --trace)
-bash-2.05b$


It’s as though the app is telling me I need UserEngine working properly
in order to install UserEngine. I’ve tried a few of the other rake
tasks, both the 1.0 names and the 1.1 ones with the same error.

Aha! Figured it out. I had Permissions.sync in my environment.rb. Which
was very convenient, but of course it would create this sort of
chicken-or-egg problem.

Funny how you can spend an hour or two trying all sorts of things to
debug something and then figure it out ten minutes after posting to a
mailing list.

Steve K. wrote:

I have a Rails 1.1.2 app that’s far along in development using
LoginEngine and UserEngine. The engines were installed on the
development box early on.

Now when I deploy to a fresh machine I get this:

$ rake db:migrate:engines
(in /usr/local/www/rails-apps/flhp/releases/20060711210158)
rake aborted!
Mysql::Error: Table ‘flhp_production.permissions’ doesn’t exist: SHOW
FIELDS FROM permissions

(See full trace by running task with --trace)
-bash-2.05b$


It’s as though the app is telling me I need UserEngine working properly
in order to install UserEngine. I’ve tried a few of the other rake
tasks, both the 1.0 names and the 1.1 ones with the same error.

Nice site!
My homepage | Please visit