Inploy gem problems

0 views
Skip to first unread message

Erik Dahlstrand

unread,
Nov 9, 2009, 8:42:38 AM11/9/09
to Inploy
Hi!

I've installed Inploy as a gem both locally and on the remote server.
The problem is that the rake tasks do not appear.

Running from Rails root:
$ rake inploy:remote:setup
rake aborted!
Don't know how to build task 'inploy:remote:setup'

$ rake -T
Do not list any Inploy tasks

The plugin version works but I prefer gems.

Kind regards, Erik

Douglas Campos

unread,
Nov 9, 2009, 8:53:59 AM11/9/09
to inp...@googlegroups.com
Hi Erik!

Did you used *sudo* to install the gem? try to run gem list, and see
if it lists the inploy gem

--
Douglas Campos (qmx)
+55 11 7626 5959

Diego Carrion

unread,
Nov 9, 2009, 8:59:42 AM11/9/09
to inp...@googlegroups.com
Hi Erik,

as today, you need to add this to your Rakefile:

require ‘inploy’
load ‘tasks/inploy.rake’

I will try to improve this to be maybe something like this:

require 'inploy/tasks'

cheers
--
Diego Carrion
http://www.diegocarrion.com
http://www.mouseoverstudio.com/blog/
http://www.twitter.com/dcrec1
http://www.workingwithrails.com/person/13580-diego-carrion

Erik Dahlstrand

unread,
Nov 9, 2009, 9:52:37 AM11/9/09
to Inploy
Ok, I'll try that.

Do you think it can be fixed so that no modifications to Rakefile is
necessary?

I had the same problem with another gem (Xapit) a while ago. Maybe you
can get some inspiration from how Ryan solved it
http://github.com/ryanb/xapit/commit/adebe8a2b8b8dd886de5081dbe51984fb1f1d6e7

Thanks Diego and Douglas!

Diego Carrion

unread,
Nov 9, 2009, 11:02:40 AM11/9/09
to inp...@googlegroups.com
The difference with Xapit is that when used as a gem, you need to run a generator so it places the rake tasks inside the application.

IMHO, adding a line to the Rakefile is more conformable than running a generator and having more files in the application. When I have to add a new line to the Rakefile, I usually setup this in my Rails template. What do you think?

Erik Dahlstrand

unread,
Nov 10, 2009, 1:42:14 AM11/10/09
to Inploy
Ok, didn't know that. Thanks for explaining Diego.


On 9 Nov, 17:02, Diego Carrion <dc.r...@gmail.com> wrote:
> The difference with Xapit is that when used as a gem, you need to run a
> generator so it places the rake tasks inside the application.
>
> IMHO, adding a line to the Rakefile is more conformable than running a
> generator and having more files in the application. When I have to add a new
> line to the Rakefile, I usually setup this in my Rails template. What do you
> think?
>
> On Mon, Nov 9, 2009 at 12:52 PM, Erik Dahlstrand
> <erik.dahlstr...@gmail.com>wrote:
>
>
>
>
>
>
>
> > Ok, I'll try that.
>
> > Do you think it can be fixed so that no modifications to Rakefile is
> > necessary?
>
> > I had the same problem with another gem (Xapit) a while ago. Maybe you
> > can get some inspiration from how Ryan solved it
>
> >http://github.com/ryanb/xapit/commit/adebe8a2b8b8dd886de5081dbe51984f...
> >www.mouseoverstudio.com/blog/http://www.twitter.com/dcrec1http://www....
Reply all
Reply to author
Forward
0 new messages