I'm trying to add some basic rack work to the Orientbb gem which will allow me to create a database, create database migration, And to migrate the database - Similar to the Rail Migration
When I had a rake work at the local level, I used to do DB: settings, DB: and make DB: - migigration works, but I use them to "rack" the gem While syncing, I can not understand how I can access them from Sinatra app.
I think I'm either either) not properly arranging files in the gem and / or b) Sinatra app is not calling things properly.
The current state of my thorny store
I have placed the file in lib / orientdb / tasks / database.rake =>
Synagatap App Rackfile
APPLICATION_ROOT = File.expand_path ('..', __FILE__) 'rack' is required 'orientdb' #import "orientdb / tasks / The database requires the rack "Work: Environment is required File.expand_path (File.join (*% w [config environment]), File.dirname (__ FILE__)) config / Environment
Ruby: jruby 1.6.0 (ruby 1.9.2 patchlevel 136) (2011-03-24 5f5278c) (OpenZK's 64-bit server VM 1.6 .0_20) [linux-md64-java]
I discovered that after 10+ hours How to remove it and me The rake was patched in the process. I submitted this patch:
I also wrote a blog entry that contains the patch code:
[UPDATE]
T requires a rack patch Got the figure ... all I had to do was to make a tasks.rb and it was needed inside the rakefile, but to work it I had to look like this:
'coke' Requires 'bundler' bundler. Setup requires 'OrientB' to be required 'Orientub / Work' I still think the rack patch is very good though. :) [Update 2]
As long as the bridge request is not accepted by the rack team, I have created a gem named Task, which will load all the rack works, your gems and their dependencies in the gem Are there.
Comments
Post a Comment