The options are either you use the embedded neo4j.rb with JRuby or
you use the neo4j server and talking HTTP/Rest with it
(http://wiki.neo4j.org/content/Using_the_Neo4j_Server_with_Ruby)
Neo4j.rb does not have any bindings to the neo4j server (Neography does).
I agree it is annoying that the rails console only works in read only
mode if the server
is already running !
If you want to run several rails-neo4j instances at the same time, check this:
http://neo4j.rubyforge.org/guides/ha_cluster.html
Btw, why do you want to run the rails server and neo4j on different machines ?
Cheers
Andreas
> --
> You received this message because you are subscribed to the Google Groups "neo4jrb" group.
> To post to this group, send email to neo...@googlegroups.com.
> To unsubscribe from this group, send email to neo4jrb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/neo4jrb?hl=en.
>
>
>
>
>>
>> I agree it is annoying that the rails console only works in read only
>> mode if the server
>> is already running !
>
> Yeah, this is a really big annoyance for me, and probably the main
> reason why I want to have a separate server running. I'm a very heavy
> console user, and hate having to bring things up and down just to play
> with things in the console.
Ok, I will see what I can do.
> Being able to use 1.9.2 rather than JRuby
> is also appealing, especially given that I have a lot of experience
> deploying standard Rails apps, and very little deploying JRuby apps.
Yes, using 1.9.2 and deploying on heroku is hard to beat.
But if you got a capistrano script it is also just one line to do the
deployment.
I'm currently using vps.net cloud for some projects and it does not
take too long time to configure the machine and capistrano script.
>
>> Btw, why do you want to run the rails server and neo4j on different machines ?
>
> Over time, I expect that we'll need multiple Web servers running
> against a single Neo4J server -- just as you do when scaling a Web app
> that uses a relational database.
One interesting alternative is deploying several Rails servers bundled
with embedded HA enabled Neo4j instances.
I think the best and easiest solution would be to have a console page
visible in your rails application.
Maybe one can even steal some of the code from IRB and expose that as
a web page ?
Who wants to implement this :-)
Another alternative, which I think is more complicated, is running the
embedded database as an HA instance.
Then the rails console start up with a HA enabled neo4j.rb.