Giter Club home page Giter Club logo

dpd-importer's Introduction

dpd-importer

Create deployd collections from existing mongo collections.

about

This is a deployd module that allows you to import existing mongodb collections into an existing or new deployd project. The impoter will pull in all existing data and use it to built your deployd collection's schema.

usage

Create a project. Then install the dpd-importer module.

dpd create my-app
cd my-app
mkdir node_modules
npm install dpd-importer
dpd -d

Click the green new resource and choose Importer.

Give it the default name "/importer". Open it by clicking "IMPORTER" in the left menu.

Enter the information of your existing MongoDB server. Clicking on Start Import will start creating deployd collections from data in the provided db by streaming data directly from the old db into your new deployd db.

use with caution

This is alpha software. Please use with caution and report any issues or feature requests.

dpd-importer's People

Contributors

ritch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

dpd-importer's Issues

Deployd won't run after install -- "Cannot find module 'deployd/lib/resource'"

I have deployd installed in my home directory: ~/node/lib/node_modules/deployd/
I have a deployd project elsewhere in my home: ~/proj/

I followed the instructions, but when I re-run dpd from the command line, it spews out this:

Error loading module node_modules/dpd-importer
Error: Cannot find module 'deployd/lib/resource'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/offlein/proj/node_modules/dpd-importer/index.js:5:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

All looks to be in order, but I'm curious if maybe I need to set up some PATHs or something. Using deployd v0.6.11

Error During Import

Running node --version .0.10.10

After clicking start import it will enter into a recursive warning loop:

(node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral.

Then finally error out with:

events.js:72
throw er; // Unhandled 'error' event
^
RangeError: Maximum call stack size exceeded

Running deployd throws an error

Hello,
I am trying to run deployd using dpd --mongod and I am getting the below error. Can someone tell me how should I resolve it?

Rajivs-MacBook-Pro:test rajivdeshmukh$ dpd --mongod
js-bson: Failed to load c++ bson extension, using pure JS version
starting deployd v0.8.0...
child_process.js:1129
var err = this._handle.spawn(options);
^
TypeError: Bad argument
at TypeError (native)
at ChildProcess.spawn (child_process.js:1129:26)
at exports.spawn (child_process.js:988:9)
at Object.exports.restart (/usr/local/lib/node_modules/deployd/lib/util/mongod.js:38:14)
at start (/usr/local/lib/node_modules/deployd/bin/dpd:149:16)
at Object. (/usr/local/lib/node_modules/deployd/bin/dpd:278:31)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3

Error loading module node_modules/dpd-importer

I installed as per the docs (non global install with npm) then ran 'dpd' in my deployd dir (which contains the node_modules dir) and I get this error output:

Error loading module node_modules/dpd-importer
Error: Cannot find module 'shelljs'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/home/stefano/code/blah/node_modules/dpd-importer/index.js:3:10)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)

Ubuntu 12.04

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.