thiagopradi / octopus_replication_example Goto Github PK
View Code? Open in Web Editor NEWSample Rails app using Octopus Library to enable support for replicated database with ActiveRecord
Home Page: http://github.com/tchandy/octopus
Sample Rails app using Octopus Library to enable support for replicated database with ActiveRecord
Home Page: http://github.com/tchandy/octopus
$ rake db:octopus
rake aborted!
Don't know how to build task 'db:octopus'
(See full trace by running task with --trace)
$ rake -T
rake about # List versions of all Rails frameworks ...
rake assets:clean # Remove compiled assets
rake assets:precompile # Compile all the assets named in config...
rake db:create # Create the database from config/databa...
rake db:drop # Drops the database for the current Rai...
rake db:fixtures:load # Load fixtures into the current environ...
rake db:migrate # Migrate the database (options: VERSION...
rake db:migrate:status # Display status of migrations
rake db:rollback # Rolls the schema back to the previous ...
rake db:schema:dump # Create a db/schema.rb file that can be...
rake db:schema:load # Load a schema.rb file into the database
rake db:seed # Load the seed data from db/seeds.rb
rake db:setup # Create the database, load the schema, ...
rake db:structure:dump # Dump the database structure to an SQL ...
rake db:version # Retrieves the current schema version n...
rake doc:app # Generate docs for the app -- also avai...
rake geocode:all # Geocode all objects without coordinates.
rake log:clear # Truncates all *.log files in log/ to z...
rake middleware # Prints out your Rack middleware stack
rake notes # Enumerate all annotations (use notes:o...
rake notes:custom # Enumerate a custom annotation, specify...
rake rails:template # Applies the template supplied by LOCAT...
rake rails:update # Update configs and some other initiall...
rake resque:work # Start a Resque worker
rake resque:workers # Start multiple Resque workers.
rake routes # Print out all defined routes in match ...
rake secret # Generate a cryptographically secure se...
rake stats # Report code statistics (KLOCs, etc) fr...
rake time:zones:all # Displays all time zones, also availabl...
rake tmp:clear # Clear session, cache, and socket files...
rake tmp:create # Creates tmp directories for sessions, ...
$ bundle show
Gems included by the bundle:
* actionmailer (3.1.1)
* actionpack (3.1.1)
* activemodel (3.1.1)
* activerecord (3.1.1)
* activeresource (3.1.1)
* activesupport (3.1.1)
* albino (1.3.3)
* ar-octopus (0.4.0 433befd)
* arel (2.2.1)
* awesome_print (0.4.0)
* builder (3.0.0)
* bundler (1.0.21)
* cancan (1.6.7)
* carmen (0.2.8)
* chronic (0.6.5)
* coffee-script (2.2.0)
* coffee-script-source (1.1.3)
* dnsruby (1.52)
* erubis (2.7.0)
* execjs (1.2.9)
* geocoder (1.0.5)
* haml (3.1.3)
* hike (1.2.1)
* httparty (0.8.1)
* i18n (0.6.0)
* ipaddress (0.8.0)
* jquery-rails (1.0.17)
* json (1.6.1)
* kaminari (0.12.4)
* libv8 (3.3.10.2)
* mail (2.3.0)
* mime-types (1.17.2)
* multi_json (1.0.3)
* multi_xml (0.4.1)
* mysql2 (0.3.10)
* nokogiri (1.5.0)
* paper_trail (2.5.0)
* polyamorous (0.5.0)
* polyglot (0.3.3)
* posix-spawn (0.3.6)
* progressbar (0.9.1)
* rack (1.3.5)
* rack-cache (1.1)
* rack-mount (0.8.3)
* rack-protection (1.1.4)
* rack-ssl (1.3.2)
* rack-test (0.6.1)
* rails (3.1.1)
* railties (3.1.1)
* rake (0.9.2.2)
* ransack (0.5.8)
* rdoc (3.11)
* redcarpet (1.17.2)
* redis (2.2.2)
* redis-namespace (1.0.3)
* resque (1.19.0 af5a9a8)
* ruby-ip (0.9.0)
* sass (3.1.10)
* sass-rails (3.1.4)
* sinatra (1.3.1)
* sprockets (2.0.3)
* squeel (0.9.3)
* test-unit (2.4.1)
* therubyracer (0.9.9)
* thor (0.14.6)
* tilt (1.3.3)
* treetop (1.4.10)
* tzinfo (0.3.31)
* uglifier (1.0.4)
* vegas (0.1.8)
* whenever (0.7.0)
$
I have the gem included in my Gemfile:
gem 'ar-octopus', :require => "octopus", :git => 'https://github.com/tchandy/octopus.git'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.