Is this in a production or development Rails environment? And, are you
instantiating the configuration object every time you need it, or
reusing an existing configuration object?

- Jamis

On 8/21/07, goodieboy <[EMAIL PROTECTED]> wrote:
>
> Hi Jamis,
>
> Yeah what's strange is that Rails is successfully executing it on the
> *first* request, but after that it says the method is missing. So, I'm
> thinking it has to do something with using "load" or "require"? I've
> been trying a bunch of different things and just can't get it to work
> beyond the first request.
>
> Thanks,
> Matt
>
> On Aug 21, 1:41 pm, "Jamis Buck" <[EMAIL PROTECTED]> wrote:
> > Hmm. If you're getting that error, then it sounds like cap isn't
> > actually loading the multistage code. Are you positive it is getting
> > loaded?
> >
> > - Jamis
> >
> > On 8/21/07, goodieboy <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Hi Jamis,
> >
> > > I keep getting this error:
> >
> > > undefined method `production' for #<Capistrano::Configuration:
> > > 0x3621bac>
> >
> > > The cap file I'm loading is doing a require on the multistage and
> > > monitor files.
> >
> > > Matt
> >
> > > On Aug 17, 1:22 pm, "Jamis Buck" <[EMAIL PROTECTED]> wrote:
> > > > require 'capistrano/configuration'
> >
> > > > config = Capistrano::Configuration.new
> > > > config.load "my/custom/tasks" # this file requires multistage
> > > > config.production # set the production multistage environment
> > > > config.deploy # run a task
> >
> > > > - Jamis
> >
> > > > On 8/17/07, goodieboy <[EMAIL PROTECTED]> wrote:
> >
> > > > > Hi,
> >
> > > > > I want to build a Rails app that uses Capistrano to execute tasks. I
> > > > > can't figure out how to call Capistrano tasks in a controller, using
> > > > > multistage? How is this done?
> >
> > > > > Thanks,
> > > > > Matt
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to